mirror of
https://github.com/tenrok/maska.git
synced 2026-06-17 19:21:21 +03:00
Add basic typescript declarations
This commit is contained in:
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
export default function directive(el: any, mask: any): Maska;
|
||||
import Maska from "./maska";
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
export default install;
|
||||
export function install(Vue: any): void;
|
||||
export function create(el: any, options: any): Maska;
|
||||
import mask from "./mask";
|
||||
import directive from "./directive";
|
||||
import tokens from "./tokens";
|
||||
import Maska from "./maska";
|
||||
export { mask, directive as maska, tokens };
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export default function mask(value: any, mask: any, tokens: any, masked?: boolean): string;
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
export default class Maska {
|
||||
constructor(el: any, opts?: {});
|
||||
_opts: {
|
||||
mask: any;
|
||||
tokens: any;
|
||||
};
|
||||
_el: any;
|
||||
init(): void;
|
||||
destroy(): void;
|
||||
updateValue(el: any, evt: any): void;
|
||||
beforeInput(e: any): void;
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
declare var _default: {
|
||||
'#': {
|
||||
pattern: RegExp;
|
||||
};
|
||||
X: {
|
||||
pattern: RegExp;
|
||||
};
|
||||
S: {
|
||||
pattern: RegExp;
|
||||
};
|
||||
A: {
|
||||
pattern: RegExp;
|
||||
uppercase: boolean;
|
||||
};
|
||||
a: {
|
||||
pattern: RegExp;
|
||||
lowercase: boolean;
|
||||
};
|
||||
'!': {
|
||||
escape: boolean;
|
||||
};
|
||||
'*': {
|
||||
repeat: boolean;
|
||||
};
|
||||
};
|
||||
export default _default;
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
export function event(name: any, inputType?: any): Event;
|
||||
export function findInputElement(el: any): any;
|
||||
export function fixInputSelection(el: any, position: any, digit: any): void;
|
||||
export function isString(val: any): boolean;
|
||||
Reference in New Issue
Block a user