svelte-ux
Version:
- Increment version in `package.json` and commit as `Version bump to x.y.z` - `npm run publish`
44 lines (37 loc) • 721 B
TypeScript
// See: https://github.com/mattjennings/vite-plugin-sveld/blob/main/types.d.ts
interface SveldProp {
name: string;
kind: string;
type: string;
isFunction: boolean;
isFunctionDeclaration: boolean;
constant: boolean;
reactive: boolean;
}
interface SveldSlot {
name: string;
default: boolean;
fallback: string;
slot_props: string;
}
interface SveldEvent {
type: string;
name: string;
element: string;
}
interface SveldRestProps {
type: string;
name: string;
}
interface SveldTypdefs {
type: string;
name: string;
ts: string;
}
interface SveldJson {
props: SveldProp[];
slots: SveldSlot[];
events: SveldEvent[];
typedefs: SveldTypedefs[];
rest_props: SveldRestProps[];
}