build: add script to generate component index

- move typedefs for correct type parsing
This commit is contained in:
Eric Liu 2020-08-13 17:24:00 -07:00
commit 5968e22bd9
14 changed files with 5518 additions and 207 deletions

View file

@ -1,10 +1,4 @@
<script>
/**
* @typedef {string} DropdownItemId
* @typedef {string} DropdownItemText
* @typedef {{ id: DropdownItemId; text: DropdownItemText; }} DropdownItem
*/
/**
* Set the dropdown items
* @type {DropdownItem[]} [items=[]]
@ -113,6 +107,12 @@
*/
export let ref = null;
/**
* @typedef {string} DropdownItemId
* @typedef {string} DropdownItemText
* @typedef {{ id: DropdownItemId; text: DropdownItemText; }} DropdownItem
*/
import { setContext } from "svelte";
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16";
import {