Skip to content

Commit 953f58b

Browse files
authored
(chore) fix typing of LanguageDetail.keywords and ModeDetail.keyword (#3778) (#3779)
1 parent bc56b4e commit 953f58b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

types/index.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ declare module 'highlight.js' {
169169
disableAutodetect?: boolean
170170
contains: (Mode)[]
171171
case_insensitive?: boolean
172-
keywords?: Record<string, any> | string
172+
keywords?: string | string[] | Record<string, string | string[]>
173173
isCompiled?: boolean,
174174
exports?: any,
175175
classNameAliases?: Record<string, string>
@@ -250,7 +250,7 @@ declare module 'highlight.js' {
250250
parent?: Mode
251251
starts?:Mode
252252
lexemes?: string | RegExp
253-
keywords?: Record<string, any> | string
253+
keywords?: string | string[] | Record<string, string | string[]>
254254
beginKeywords?: string
255255
relevance?: number
256256
illegal?: string | RegExp | Array<string | RegExp>
@@ -272,5 +272,3 @@ declare module 'highlight.js/lib/languages/*' {
272272
const defineLanguage: LanguageFn;
273273
export default defineLanguage;
274274
}
275-
276-

0 commit comments

Comments
 (0)