From 95486e1b9cd28f52e98612b832fffbda9d4851ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Carvalho=20de=20Mello?= Date: Sat, 13 Jun 2020 12:03:05 -0300 Subject: [PATCH] fix "is not a module" #2603 --- types/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index b9eb0d317a..cc6c88f36d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,6 +3,8 @@ // eslint-disable-next-line declare const hljs : HLJSApi; +export = hljs; + interface HLJSApi { highlight: (languageName: string, code: string, ignoreIllegals?: boolean, continuation?: Mode) => HighlightResult highlightAuto: (code: string, languageSubset?: string[]) => AutoHighlightResult