18 lines
No EOL
710 B
TypeScript
18 lines
No EOL
710 B
TypeScript
import Masked, { type MaskedOptions } from './base';
|
|
export type MaskedFunctionOptions = MaskedOptions<MaskedFunction>;
|
|
/** Masking by custom Function */
|
|
export default class MaskedFunction<Value = any> extends Masked<Value> {
|
|
/** */
|
|
mask: (value: string, masked: Masked) => boolean;
|
|
/** Enable characters overwriting */
|
|
overwrite?: boolean | 'shift' | undefined;
|
|
/** */
|
|
eager?: boolean | 'remove' | 'append' | undefined;
|
|
/** */
|
|
skipInvalid?: boolean | undefined;
|
|
/** */
|
|
autofix?: boolean | 'pad' | undefined;
|
|
updateOptions(opts: Partial<MaskedFunctionOptions>): void;
|
|
_update(opts: Partial<MaskedFunctionOptions>): void;
|
|
}
|
|
//# sourceMappingURL=function.d.ts.map
|