aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins.d.ts
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-09-28 03:53:24 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-28 03:53:24 -0700
commit387f1260c9dc0cea667b44ec0152fff0cd4def25 (patch)
tree24dde83cf812481b6d1c8de316a30ece7b745a54 /src/js/builtins.d.ts
parente60b3607c12c91959ec795228cc299703d5b09d0 (diff)
downloadbun-387f1260c9dc0cea667b44ec0152fff0cd4def25.tar.gz
bun-387f1260c9dc0cea667b44ec0152fff0cd4def25.tar.zst
bun-387f1260c9dc0cea667b44ec0152fff0cd4def25.zip
Get Next.js Pages Router to work (#6095)
* hell * make it so bun-debug-src * teag * wild * yippee * fas * fix async hooks assertions * yap * yeah that's wild * aa * a * increase time allowed * so trivial
Diffstat (limited to 'src/js/builtins.d.ts')
-rw-r--r--src/js/builtins.d.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/builtins.d.ts b/src/js/builtins.d.ts
index cdda3ffe1..ee7bd68cf 100644
--- a/src/js/builtins.d.ts
+++ b/src/js/builtins.d.ts
@@ -12,7 +12,9 @@ declare function $debug(...args: any[]): void;
/** $assert is a preprocessor macro that only runs in debug mode. it throws an error if the first argument is falsy.
* The source code passed to `check` is inlined in the message, but in addition you can pass additional messages.
*/
-declare function $assert(check: any, ...message: any[]): void;
+declare function $assert(check: any, ...message: any[]): asserts check;
+
+declare const IS_BUN_DEVELOPMENT: boolean;
/** Place this directly above a function declaration (like a decorator) to make it a getter. */
declare const $getter: never;
@@ -439,6 +441,8 @@ declare function $createCommonJSModule(
parent: CommonJSModuleRecord,
): CommonJSModuleRecord;
+declare function $overridableRequire(this: CommonJSModuleRecord, id: string): any;
+
// The following I cannot find any definitions of, but they are functional.
declare function $toLength(length: number): number;
declare function $isTypedArrayView(obj: unknown): obj is ArrayBufferView | DataView | Uint8Array;