build: use svelte compiler to generate typescript definitions

This commit is contained in:
Eric Liu 2020-08-10 18:27:26 -07:00
commit 5c829b5afc
16 changed files with 4948 additions and 948 deletions

View file

@ -1,9 +1,28 @@
<script>
export let disabled = false;
export let hidden = false;
export let text = "";
/**
* Specify the option value
* @type {string} [value=""]
*/
export let value = "";
/**
* Specify the option text
* @type {string} [text=""]
*/
export let text = "";
/**
* Set to `true` to hide the option
* @type {boolean} [hidden=false]
*/
export let hidden = false;
/**
* Set to `true` to disable the option
* @type {boolean} [disabled=false]
*/
export let disabled = false;
import { getContext, onDestroy } from "svelte";
const ctx = getContext("Select") || getContext("TimePickerSelect");