aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins.d.ts
diff options
context:
space:
mode:
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;