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

3.8.4 • Public • Published

Installation

npm install --save @types/text-mask-addons

Summary

This package contains type definitions for text-mask-addons (https://github.com/text-mask/text-mask/tree/master/addons/#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-mask-addons.

index.d.ts

import { Mask, Pipe } from "text-mask-core";

export interface DatePipeYears {
    minYear: number;
    maxYear: number;
}
export function createAutoCorrectedDatePipe(dateFormat?: string, validYears?: DatePipeYears): Pipe;

export interface NumberMaskOptions {
    prefix: string;
    suffix: string;
    includeThousandsSeparator: boolean;
    thousandsSeparatorSymbol: string;
    allowDecimal: boolean;
    decimalSymbol: string;
    decimalLimit: number;
    requireDecimal: boolean;
    allowNegative: boolean;
    allowLeadingZeroes: boolean;
    integerLimit: number | null;
}
export function createNumberMask(maskOptions?: Partial<NumberMaskOptions>): (rawValue: string) => Mask;

Additional Details

Credits

These definitions were written by josh, and Aerophite.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/text-mask-addons

Weekly Downloads

5,865

Version

3.8.4

License

MIT

Unpacked Size

4.28 kB

Total Files

5

Last publish

Collaborators

  • types