npm.io
0.0.34 • Published 2 years ago

@types/maskedinput

Licence
MIT
Version
0.0.34
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/maskedinput

Summary

This package contains type definitions for maskedinput (http://digitalbush.com/projects/masked-input-plugin).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/maskedinput.

index.d.ts

/// <reference types="jquery" />

interface JQueryMaskedInputOptions {
    mask?: string | undefined;
    alias?: string | undefined;
    placeholder?: string | undefined;
    repeat?: number | undefined;
    greedy?: boolean | undefined;
    skipOptionalPartCharacter?: string | undefined;
    clearIncomplete?: boolean | undefined;
    clearMaskOnLostFocus?: boolean | undefined;
    autoUnmask?: boolean | undefined;
    showMaskOnFocus?: boolean | undefined;
    showMaskOnHover?: boolean | undefined;
    showToolTip?: boolean | undefined;
    isComplete?: ((buffer: any, options: any) => {}) | undefined;
    numeric?: boolean | undefined;
    radixPoint?: string | undefined;
    rightAlignNumerics?: boolean | undefined;
    oncomplete?: ((value?: any) => void) | undefined;
    onincomplete?: (() => void) | undefined;
    oncleared?: (() => void) | undefined;
    onUnMask?: ((maskedValue: any, unmaskedValue: any) => void) | undefined;
    onBeforeMask?: ((initialValue: any) => void) | undefined;
    onKeyValidation?: ((result: any) => void) | undefined;
    onBeforePaste?: ((pastedValue: any) => void) | undefined;
}

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 {
    mask: MaskedInputStatic;
}

interface JQuery {
    mask(mask: string, options?: JQueryMaskedInputOptions): JQuery;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Lokesh Peta.