We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scrapox
cosense
1 parent 666761c commit d3c3cdeCopy full SHA for d3c3cde
userscript.ts
@@ -10,3 +10,19 @@ export * from "./pageMenu.ts";
10
export * from "./eventName.ts";
11
export * from "./scrapbox.ts";
12
export type { EventEmitter } from "./vendor/events.ts";
13
+import type { Scrapbox } from "./scrapbox.ts";
14
+
15
+// The following assignments are a workaround for esbuild
16
+// Use IIFE to tree-shaking
17
18
+/** `scrapbox` */
19
+export const scrapbox: Scrapbox = /* @__PURE__ */ (
20
+ // deno-lint-ignore no-explicit-any
21
+ () => (globalThis as any).scrapbox
22
+)();
23
24
+/** an alias for {@linkcode scrapbox} */
25
+export const cosense: Scrapbox = /* @__PURE__ */ (
26
27
+ () => (globalThis as any).cosense
28
0 commit comments