diff --git a/mdi-svelte.d.ts b/mdi-svelte.d.ts new file mode 100644 index 0000000..a1a4da9 --- /dev/null +++ b/mdi-svelte.d.ts @@ -0,0 +1,11 @@ +import { SvelteComponentTyped } from 'svelte'; + +export interface IconProps { + path: string; + size?: number | string; + color?: string; + flip?: boolean | string; + rotate?: number; + spin?: number | boolean; +} +export default class Icon extends SvelteComponentTyped { } \ No newline at end of file diff --git a/package.json b/package.json index 0232679..f03b22a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "svelte": "src/Index.svelte", "module": "index.mjs", "main": "index.js", + "types": "./mdi-svelte.d.ts", "scripts": { "build": "rollup -c", "prepublishOnly": "npm run build", @@ -39,4 +40,4 @@ "url": "https://github.com/AlexxNB/mdi-svelte/issues" }, "homepage": "https://github.com/AlexxNB/mdi-svelte#readme" -} +} \ No newline at end of file