chore: use sveld to generate types, component docs

This commit is contained in:
Eric Liu 2020-11-16 11:13:18 -08:00
commit 380a780b65
15 changed files with 13298 additions and 4888 deletions

View file

@ -86,7 +86,17 @@ export interface ButtonProps {
export default class Button {
$$prop_def: ButtonProps;
$$slot_def: {
default: { props: undefined };
default: {
props?: {
role: "button";
type?: string;
tabindex: string;
disabled: boolean;
href?: string;
class: string;
[key: string]: any;
};
};
};
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;