diff --git a/package.json b/package.json index f7d9968..61ce4da 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,11 @@ "main": "dist/Vueresize.js", "files": [ "dist/Vueresize.js", - "dist/Vueresize.js.map" + "dist/Vueresize.js.map", + "types/index.d.ts", + "types/vueresize.d.ts" ], + "types": "types/index.d.ts", "keywords": [ "vue", "vuejs", diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..86372f5 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,4 @@ +import { VueResizeDirectiveOptions } from "./vueresize"; + +declare var VueResize: VueResizeDirectiveOptions; +export default VueResize; diff --git a/types/vueresize.d.ts b/types/vueresize.d.ts new file mode 100644 index 0000000..069f0a4 --- /dev/null +++ b/types/vueresize.d.ts @@ -0,0 +1,4 @@ +import { PluginObject } from "vue"; +import { DirectiveOptions } from "vue/types/options"; + +export interface VueResizeDirectiveOptions extends DirectiveOptions {}