diff --git a/package.json b/package.json index 1096008..5f50146 100644 --- a/package.json +++ b/package.json @@ -68,5 +68,6 @@ "vue-cli-service lint", "git add" ] - } + }, + "types": "./src/main.d.ts" } diff --git a/src/main.d.ts b/src/main.d.ts new file mode 100644 index 0000000..6eba5c9 --- /dev/null +++ b/src/main.d.ts @@ -0,0 +1,11 @@ +/* tslint:disable:only-arrow-functions */ +import { VueConstructor } from 'vue' + +declare module "vue-unicons" { + export function install(Vue: VueConstructor, options: object): void + export function add(icons: string[]): void +} + +declare module "vue-unicons/src/icons" { + export const icons: { name: string; path: string } +}