Skip to content

Commit db2f732

Browse files
committed
Fix DOMPURIFY_CONFIG TypeScript error - make arrays mutable
1 parent 444f6d1 commit db2f732

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const DOMPURIFY_CONFIG = {
100100
'td',
101101
'br',
102102
'a',
103-
],
104-
ALLOWED_ATTR: ['class', 'href', 'target', 'rel'],
103+
] as string[],
104+
ALLOWED_ATTR: ['class', 'href', 'target', 'rel'] as string[],
105105
ALLOW_DATA_ATTR: false,
106106
};

0 commit comments

Comments
 (0)