diff options
Diffstat (limited to 'src/js/private.d.ts')
-rw-r--r-- | src/js/private.d.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/js/private.d.ts b/src/js/private.d.ts index eae2047fb..276ac136c 100644 --- a/src/js/private.d.ts +++ b/src/js/private.d.ts @@ -95,7 +95,7 @@ declare module "bun" { }; function fs(): BunFS; function _Os(): typeof import("node:os"); - function _Path(isWindows?: boolean): typeof import("node:path"); + function _Path(isWin32?: boolean): typeof import("node:path"); function jest(): typeof import("bun:test"); var main: string; var tty: Array<{ hasColors: boolean }>; @@ -129,6 +129,7 @@ interface LoaderEntry { evaluated: boolean; then?: any; isAsync: boolean; + isSatisfied: boolean; } interface LoaderModule { @@ -145,7 +146,6 @@ declare interface Error { * This is only valid in src/js/ as it is replaced with `globalThis[Symbol.for("Bun.lazy")]` at bundle time. */ function $lazy<T extends keyof BunLazyModules>(id: T): BunLazyModules[T]; -function $lazy(id: "createImportMeta", from: string): BunLazyModules[T]; interface BunLazyModules { /** @@ -199,3 +199,6 @@ interface BunLazyModules { [2]: any; [4]: any; } + +/** Assign to this variable in src/js/{bun,node,thirdparty} to act as module.exports */ +declare var $exports: any; |