|
1 | 1 | declare module 'highlight.js/lib/highlight.js' { |
2 | 2 | import hljs from 'highlight.js'; |
3 | 3 |
|
4 | | - export type HighlightJS = typeof hljs; |
5 | | - |
6 | | - export default hljs; |
7 | | - |
8 | | - export const highlight: typeof hljs.highlight; |
9 | | - export const highlightAuto: typeof hljs.highlightAuto; |
10 | | - export const fixMarkup: typeof hljs.fixMarkup; |
11 | | - export const highlightBlock: typeof hljs.highlightBlock; |
12 | | - export const configure: typeof hljs.configure; |
13 | | - export const initHighlighting: typeof hljs.initHighlighting; |
14 | | - export const initHighlightingOnLoad: typeof hljs.initHighlightingOnLoad; |
15 | | - export const registerLanguage: typeof hljs.registerLanguage; |
16 | | - export const listLanguages: typeof hljs.listLanguages; |
17 | | - export const getLanguage: typeof hljs.getLanguage; |
18 | | - export const inherit: typeof hljs.inherit; |
19 | | - export const COMMENT: typeof hljs.COMMENT; |
20 | | - |
21 | | - export const IDENT_RE: typeof hljs.IDENT_RE; |
22 | | - export const UNDERSCORE_IDENT_RE: typeof hljs.UNDERSCORE_IDENT_RE; |
23 | | - export const NUMBER_RE: typeof hljs.NUMBER_RE; |
24 | | - export const C_NUMBER_RE: typeof hljs.C_NUMBER_RE; |
25 | | - export const BINARY_NUMBER_RE: typeof hljs.BINARY_NUMBER_RE; |
26 | | - export const RE_STARTERS_RE: typeof hljs.RE_STARTERS_RE; |
27 | | - |
28 | | - export const BACKSLASH_ESCAPE: typeof hljs.BACKSLASH_ESCAPE; |
29 | | - export const APOS_STRING_MODE: typeof hljs.APOS_STRING_MODE; |
30 | | - export const QUOTE_STRING_MODE: typeof hljs.QUOTE_STRING_MODE; |
31 | | - export const PHRASAL_WORDS_MODE: typeof hljs.PHRASAL_WORDS_MODE; |
32 | | - export const C_LINE_COMMENT_MODE: typeof hljs.C_LINE_COMMENT_MODE; |
33 | | - export const C_BLOCK_COMMENT_MODE: typeof hljs.C_BLOCK_COMMENT_MODE; |
34 | | - export const HASH_COMMENT_MODE: typeof hljs.HASH_COMMENT_MODE; |
35 | | - export const NUMBER_MODE: typeof hljs.NUMBER_MODE; |
36 | | - export const C_NUMBER_MODE: typeof hljs.C_NUMBER_MODE; |
37 | | - export const BINARY_NUMBER_MODE: typeof hljs.BINARY_NUMBER_MODE; |
38 | | - export const CSS_NUMBER_MODE: typeof hljs.CSS_NUMBER_MODE; |
39 | | - export const REGEX_MODE: typeof hljs.REGEX_MODE; |
40 | | - export const TITLE_MODE: typeof hljs.TITLE_MODE; |
41 | | - export const UNDERSCORE_TITLE_MODE: typeof hljs.UNDERSCORE_TITLE_MODE; |
| 4 | + export = hljs; |
42 | 5 | } |
0 commit comments