Skip to content

Commit 5a5027a

Browse files
authored
fix(types): add RegExp to Mode.keywords to match LanguageDetail.keywords (#4383)
1 parent 40fc89e commit 5a5027a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ declare module 'highlight.js' {
250250
parent?: Mode
251251
starts?:Mode
252252
lexemes?: string | RegExp
253-
keywords?: string | string[] | Record<string, string | string[]>
253+
keywords?: string | string[] | Record<string, string | string[] | RegExp>
254254
beginKeywords?: string
255255
relevance?: number
256256
illegal?: string | RegExp | Array<string | RegExp>

0 commit comments

Comments
 (0)