Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

marked: Use types from ESM (not CJS) version of re2js.

Anders Kaseorgca6881134fec
diff --git a/web/third/marked/lib/marked.d.cts b/web/third/marked/lib/marked.d.cts
index 8c51a8d9494..470eecf7ac6 100644
--- a/web/third/marked/lib/marked.d.cts
+++ b/web/third/marked/lib/marked.d.cts
@@ -4,7 +4,7 @@ we only use parts of the marked API and are using a fork
of the upstream library.
*/
-import type {Matcher, RE2JS} from "re2js";
+import type {Matcher, RE2JS} from "./re2js.d.ts";
declare class Renderer {
code: (code: string) => string;
diff --git a/web/third/marked/lib/re2js.d.ts b/web/third/marked/lib/re2js.d.ts
new file mode 100644
index 00000000000..4e25676c570
--- /dev/null
+++ b/web/third/marked/lib/re2js.d.ts
@@ -0,0 +1,2 @@
+// Re-export these types from the ESM (not CJS) version of re2js.
+export type {Matcher, RE2JS} from "re2js";