Skip to content

Commit

Permalink
fix: support readonly array in MaskitoMaskExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 6, 2024
1 parent b8781fb commit 2903d93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/core/src/lib/types/mask.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type {ElementState} from './element-state';

export type MaskitoMaskExpression = Array<RegExp | string> | RegExp;
export type MaskitoMaskExpression =
| ReadonlyArray<RegExp | string>
| Array<RegExp | string>
| RegExp;

export type MaskitoMask =
| MaskitoMaskExpression
Expand Down

0 comments on commit 2903d93

Please sign in to comment.