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
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/text-mask-core