mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(types): use the SvelteComponentTyped interface in the TypeScript definitions (#515)
This commit is contained in:
parent
4e4234f83d
commit
bcd28de86e
161 changed files with 6379 additions and 6362 deletions
15
types/Loading/Loading.d.ts
vendored
15
types/Loading/Loading.d.ts
vendored
|
@ -1,6 +1,8 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface LoadingProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
export interface LoadingProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set to `true` to use the small variant
|
||||
* @default false
|
||||
|
@ -32,9 +34,8 @@ export interface LoadingProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNa
|
|||
id?: string;
|
||||
}
|
||||
|
||||
export default class Loading {
|
||||
$$prop_def: LoadingProps;
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
}
|
||||
export default class Loading extends SvelteComponentTyped<
|
||||
LoadingProps,
|
||||
{},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue