From 84aaa4dba2ed9c7d587c992abc7a5d6efe58722a Mon Sep 17 00:00:00 2001 From: Charles Salmon Date: Tue, 16 Apr 2019 11:43:26 +1200 Subject: [PATCH] Add type definitions. --- package.json | 7 +++++-- types/index.d.ts | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 types/index.d.ts diff --git a/package.json b/package.json index a775107..1f4771f 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,10 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, + "typings": "types/index.d.ts", "files": [ - "index.js" + "index.js", + "types/index.d.ts" ], "repository": { "type": "git", @@ -30,6 +32,7 @@ "nativescript-toasty": "*", "nativescript-socketio": "*", "tns-core-modules": "*", - "@vue/devtools": "*" + "@vue/devtools": "*", + "vue": "*" } } diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..85c4fe0 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,3 @@ +import _Vue from "vue"; + +export declare function install(Vue: typeof _Vue): void;