aboutsummaryrefslogtreecommitdiff
path: root/src/js/private.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/private.d.ts')
-rw-r--r--src/js/private.d.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/js/private.d.ts b/src/js/private.d.ts
index c5b9ab03d..77f4d5536 100644
--- a/src/js/private.d.ts
+++ b/src/js/private.d.ts
@@ -213,3 +213,15 @@ interface BunLazyModules {
/** Assign to this variable in src/js/{bun,node,thirdparty} to act as module.exports */
declare var $exports: any;
+
+interface CommonJSModuleRecord {
+ $require(id: string, mod: any): any;
+ children: CommonJSModuleRecord[];
+ exports: any;
+ id: string;
+ loaded: boolean;
+ parent: undefined;
+ path: string;
+ paths: string[];
+ require: typeof require;
+}