Skip to content

Commit b7d70a4

Browse files
Merge pull request #41 from SamhammerAG/add-typescript-definitions
Add typescript definitions
2 parents ee37562 + 6d7d6ce commit b7d70a4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-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

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

0 commit comments

Comments
 (0)