From 2903d93a60466b654d7f916caa0963838f9bbddc Mon Sep 17 00:00:00 2001 From: splincode Date: Sun, 6 Oct 2024 23:05:48 +0300 Subject: [PATCH] fix: support readonly array in `MaskitoMaskExpression` --- projects/core/src/lib/types/mask.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/core/src/lib/types/mask.ts b/projects/core/src/lib/types/mask.ts index 4a9c74a23..03f4bad44 100644 --- a/projects/core/src/lib/types/mask.ts +++ b/projects/core/src/lib/types/mask.ts @@ -1,6 +1,9 @@ import type {ElementState} from './element-state'; -export type MaskitoMaskExpression = Array | RegExp; +export type MaskitoMaskExpression = + | ReadonlyArray + | Array + | RegExp; export type MaskitoMask = | MaskitoMaskExpression