UNPKG

ngx-mask

Version:
27 lines (26 loc) 841 B
import { InjectionToken } from '@angular/core'; export interface IConfig { sufix: string; prefix: string; clearIfNotMatch: boolean; showTemplate: boolean; showMaskTyped: boolean; shownMaskExpression: string; dropSpecialCharacters: boolean | string[]; specialCharacters: string[]; hiddenInput: boolean; validation: boolean; patterns: { [character: string]: { pattern: RegExp; optional?: boolean; symbol?: string; }; }; } export declare type optionsConfig = Partial<IConfig>; export declare const config: InjectionToken<string>; export declare const NEW_CONFIG: InjectionToken<string>; export declare const INITIAL_CONFIG: InjectionToken<IConfig>; export declare const initialConfig: IConfig; export declare const withoutValidation: string[];