Skip to content

Commit 2b584f7

Browse files
committed
Fixes #22 add typescript definitions
1 parent ee37562 commit 2b584f7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"lintfix": "eslint --fix --ext .js,.vue src examples-src build"
1616
},
1717
"main": "dist/vue-autonumeric.min.js",
18+
"typings": "types/index.d.ts",
1819
"readmeFilename": "README.md",
1920
"keywords": [
2021
"autonumeric",

types/index.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Vue from 'vue';
2+
3+
export default class VueAutonumeric extends Vue {
4+
public value: number | null | string;
5+
public options: object | string | object[] | string[];
6+
public resetOnOptions: boolean;
7+
public placeholder: string;
8+
public tag: string;
9+
}

0 commit comments

Comments
 (0)