svelte-tabs icon indicating copy to clipboard operation
svelte-tabs copied to clipboard

Typings

Open LokiMidgard opened this issue 1 year ago • 0 comments

Hi, I realy like your Tab implementation.

However since I use typescript the editor always complains that there are no types. I always need to add following in my d.ts file:

declare module "svelte-tabs" {
    import { SvelteComponentTyped } from "svelte"
    export class Tab extends SvelteComponentTyped { }
    export class Tabs extends SvelteComponentTyped<{ initialSelectedIndex?: number }> { }
    export class TabList extends SvelteComponentTyped { }
    export class TabPanel extends SvelteComponentTyped { }
}

And since I need to look up how to type SvelteConmponents, it would be nice if you could include the Typings in your package.

LokiMidgard avatar Apr 24 '23 14:04 LokiMidgard