Add shortHand and d.ts files for InputMask

pull/41/head
mertsincan 2019-08-08 11:47:24 +03:00
parent 6cf1b01de7
commit 3c7d8d2988
3 changed files with 15 additions and 0 deletions

1
exports/inputmask.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export * from './components/inputmask/InputMask';

2
exports/inputmask.js Normal file
View File

@ -0,0 +1,2 @@
'use strict';
module.exports = require('./components/inputmask/InputMask.vue');

12
src/components/inputmask/InputMask.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
import Vue, { VNode } from 'vue';
export declare class InputMask extends Vue {
value?: string;
$emit(eventName: 'input', value: string): this;
$emit(eventName: 'focus', event: Event): this;
$emit(eventName: 'blur', event: Event): this;
$emit(eventName: 'keydown', event: Event): this;
$emit(eventName: 'keypress', event: Event): this;
$emit(eventName: 'paste', event: Event): this;
$emit(eventName: 'complete', event: Event): this;
}