test: add TS types

This commit is contained in:
Eric Liu 2020-11-19 14:16:01 -08:00
commit eed617433b
126 changed files with 3378 additions and 226 deletions

View file

@ -10,13 +10,13 @@ export interface PasswordInputProps extends svelte.JSX.HTMLAttributes<HTMLElemen
* Specify the input value
* @default ""
*/
value?: string;
value?: number | string;
/**
* Specify the input type
* Set to `"text"` to toggle the password visibility
* @default "password"
*/
type?: string;
type?: "text" | "password";
/**
* Specify the placeholder text

View file

@ -10,7 +10,7 @@ export interface TextInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTag
* Specify the input value
* @default ""
*/
value?: string;
value?: number | string;
/**
* Specify the input type