File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const NO_MATCH = Symbol("nomatch");
20
20
21
21
/**
22
22
* @param {any } hljs - object that is extended (legacy)
23
+ * @returns {HLJSApi }
23
24
*/
24
25
const HLJS = function ( hljs ) {
25
26
// Convenience variables for build-in objects
Original file line number Diff line number Diff line change @@ -210,3 +210,22 @@ interface ModeDetails {
210
210
subLanguage ?: string | string [ ]
211
211
compiled ?: boolean
212
212
}
213
+
214
+ // deprecated API since v10
215
+ // declare module 'highlight.js/lib/highlight.js';
216
+
217
+ declare module 'highlight.js' {
218
+ export = hljs ;
219
+ }
220
+
221
+ declare module 'highlight.js/lib/core' {
222
+ export = hljs ;
223
+ }
224
+
225
+ declare module 'highlight.js/lib/core.js' {
226
+ export = hljs ;
227
+ }
228
+
229
+ declare module 'highlight.js/lib/languages/*' {
230
+ export default function ( hljs ?: HLJSApi ) : LanguageDetail ;
231
+ }
You can’t perform that action at this time.
0 commit comments