aboutsummaryrefslogtreecommitdiff
path: root/src/js/private.d.ts
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-09-07 04:58:44 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-07 04:58:44 -0700
commit57a06745a48093c25d0f4729ccea41a918d6427d (patch)
treeac2568d5c98918d6364d2a9667c164cd3f3b3867 /src/js/private.d.ts
parent4360ec83b4146e15344b304573795f084f86a7c2 (diff)
downloadbun-57a06745a48093c25d0f4729ccea41a918d6427d.tar.gz
bun-57a06745a48093c25d0f4729ccea41a918d6427d.tar.zst
bun-57a06745a48093c25d0f4729ccea41a918d6427d.zip
Progress for Next.js (#4468)
* L * ipc * asdfghjkl * dfghjk * it works! * types * patches for next.js * sdfghj * wsdfgn,./ * this * yolo * okay loser * asdfghjk * add some more APIs * MESS * sdfghjkl * remove native events from streams * stuff * remove lazy(primordials) test * debugging * okay * less fake extensions object * fix `Buffer.toString()` args logic * fix deserialize * make tests work * add test for `Buffer.toString` args * Update server.zig * remove test * update test * Update spawn-streaming-stdin.test.ts * fix linux build * Update fs.test.ts * cli message improvements * dfshaj * Fix fs.watch bug maybe? * remove --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'src/js/private.d.ts')
-rw-r--r--src/js/private.d.ts17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/js/private.d.ts b/src/js/private.d.ts
index 80c22bd51..74ac8ee1a 100644
--- a/src/js/private.d.ts
+++ b/src/js/private.d.ts
@@ -175,13 +175,6 @@ interface BunLazyModules {
describe: typeof import("bun:jsc").jscDescribe;
describeArray: typeof import("bun:jsc").jscDescribe;
};
- "bun:stream": {
- maybeReadMore: Function;
- resume: Function;
- emitReadable: Function;
- onEofChunk: Function;
- ReadableState: Function;
- };
sqlite: any;
"vm": {
createContext: Function;
@@ -190,8 +183,11 @@ interface BunLazyModules {
runInNewContext: Function;
runInThisContext: Function;
};
- /** typeof === 'undefined', but callable -> throws not implemented */
- "masqueradesAsUndefined": (...args: any) => any;
+ /* typeof === 'undefined', but callable -> throws not implemented
+ * We dont use this anywhere right now, so it's commented out in native code.
+ */
+ // "masqueradesAsUndefined": (...args: any) => any;
+
pathToFileURL: typeof import("node:url").pathToFileURL;
fileURLToPath: typeof import("node:url").fileURLToPath;
noop: {
@@ -201,9 +197,8 @@ interface BunLazyModules {
callback: any;
};
"async_hooks": {
- get: typeof import("./builtins/AsyncContext").getAsyncContext;
- set: typeof import("./builtins/AsyncContext").setAsyncContext;
cleanupLater: () => void;
+ setAsyncHooksEnabled: (enabled: boolean) => void;
};
"worker_threads": [
//