mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
corrected file and folder names
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// Type definitions for Masked Input plugin for jQuery
|
||||
// Project: http://digitalbush.com/projects/masked-input-plugin
|
||||
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
///<reference path="maskedinput.d.ts" />
|
||||
|
||||
$("#test").inputmask("9:000");
|
||||
$("#test").inputmask("9:000", { numeric: true });
|
||||
|
||||
var alies = $.inputmask.defaults.aliases;
|
||||
Vendored
+55
@@ -0,0 +1,55 @@
|
||||
// Type definitions for Masked Input plugin for jQuery
|
||||
// Project: http://digitalbush.com/projects/masked-input-plugin
|
||||
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JQueryMaskedInputOptions {
|
||||
mask?: string;
|
||||
alias?: string;
|
||||
placeholder?: string;
|
||||
repeat?: number;
|
||||
greedy?: boolean;
|
||||
skipOptionalPartCharacter?: string;
|
||||
clearIncomplete?: boolean;
|
||||
clearMaskOnLostFocus?: boolean;
|
||||
autoUnmask?: boolean;
|
||||
showMaskOnFocus?: boolean;
|
||||
showMaskOnHover?: boolean;
|
||||
showToolTip?: boolean;
|
||||
isComplete?: (buffer: any, options: any) => {};
|
||||
numeric?: boolean;
|
||||
radixPoint?: string;
|
||||
rightAlignNumerics?: boolean;
|
||||
oncomplete?: (value?: any) => void;
|
||||
onincomplete?: () => void;
|
||||
oncleared?: () => void;
|
||||
onUnMask?: (maskedValue: any, unmaskedValue: any) => void;
|
||||
onBeforeMask?: (initialValue: any) => void;
|
||||
onKeyValidation?: (result: any) => void;
|
||||
onBeforePaste?: (pastedValue: any) => void;
|
||||
}
|
||||
|
||||
interface MaskedInputStatic {
|
||||
defaults: MaskedInputDefaults;
|
||||
isValid: (value: string, options: MaskedInputStaticDefaults) => boolean;
|
||||
format: (value: string, options: MaskedInputStaticDefaults) => boolean;
|
||||
}
|
||||
|
||||
interface MaskedInputStaticDefaults {
|
||||
alias: string;
|
||||
}
|
||||
|
||||
interface MaskedInputDefaults {
|
||||
aliases: any;
|
||||
definitions: any;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
inputmask: MaskedInputStatic;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
inputmask(mask: string, options?: JQueryMaskedInputOptions): JQuery;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
--noImplicitAny --module commonjs --target es5
|
||||
Reference in New Issue
Block a user