Skip to content

Commit

Permalink
Added rudimentary typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ELFoglalt committed Mar 23, 2020
1 parent 2086327 commit 924a72b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { VueResizeDirectiveOptions } from "./vueresize";

declare var VueResize: VueResizeDirectiveOptions;
export default VueResize;
4 changes: 4 additions & 0 deletions types/vueresize.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { PluginObject } from "vue";
import { DirectiveOptions } from "vue/types/options";

export interface VueResizeDirectiveOptions extends DirectiveOptions {}

0 comments on commit 924a72b

Please sign in to comment.