@types/maskedinput
TypeScript icon, indicating that this package has built-in type declarations

0.0.34 • Public • Published

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 09:09:39 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Lokesh Peta.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/maskedinput

Weekly Downloads

148

Version

0.0.34

License

MIT

Unpacked Size

5.92 kB

Total Files

5

Last publish

Collaborators

  • types