From 924a72b2dded297771d91a302a6b1b9bb9b5947d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kerekes?= Date: Mon, 23 Mar 2020 20:49:01 +0100 Subject: [PATCH] Added rudimentary typings --- package.json | 5 ++++- types/index.d.ts | 4 ++++ types/vueresize.d.ts | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 types/index.d.ts create mode 100644 types/vueresize.d.ts 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 {}