fix(types): correctly type kind prop in FileUploader, FileUploaderButton (#1781)

This commit is contained in:
Eric Liu 2023-07-23 12:42:33 -07:00 committed by GitHub
commit a7443c2dca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 34 deletions

View file

@ -52,7 +52,7 @@ export interface FileUploaderProps extends RestProps {
* Specify the kind of file uploader button
* @default "primary"
*/
kind?: "primary" | "secondary" | "tertiary" | "ghost" | "danger";
kind?: import("../Button/Button.svelte").ButtonProps["kind"];
/**
* Specify the button label

View file

@ -38,7 +38,7 @@ export interface FileUploaderButtonProps extends RestProps {
* Specify the kind of file uploader button
* @default "primary"
*/
kind?: "primary" | "secondary" | "tertiary" | "ghost" | "danger";
kind?: import("../Button/Button.svelte").ButtonProps["kind"];
/**
* Specify the label text