From f7f1b604443c030afe29d1059b90f72c69afe081 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 9 Nov 2022 15:40:40 -0800 Subject: Add bun-types, add typechecking, add `child_process` types (#1475) * Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell Co-authored-by: Dylan Conway --- src/api/demo/lib/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/demo/lib/run.ts') diff --git a/src/api/demo/lib/run.ts b/src/api/demo/lib/run.ts index 8337eb2c9..87d703556 100644 --- a/src/api/demo/lib/run.ts +++ b/src/api/demo/lib/run.ts @@ -27,7 +27,7 @@ const swcOptions = { }; export async function transform(contents, file) { - var result = { + var result: any = { timings: { esbuild: 0, bun: 0, @@ -59,7 +59,7 @@ export async function transform(contents, file) { } result.timings.swc = performance.now(); - result.swc = transformSyncSWC(contents, swcOptions); + result.swc = transformSyncSWC(contents, swcOptions as any); result.timings.swc = performance.now() - result.timings.swc; console.log("esbuild:", result.timings.esbuild, "ms"); -- cgit v1.2.3 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2022-10-21Add test for `fs.createReadStream`Gravatar Jarred Sumner 1-0/+43
2022-10-21Implement `fs.createReadStream`, begin `fs.createWriteStream`Gravatar Jarred Sumner 1-3/+621
2022-10-21Make Node Streams work better in BunGravatar Jarred Sumner 1-140/+214
2022-10-21Fix error handling logic in read()Gravatar Jarred Sumner 1-51/+79
2022-10-21Fix bugs in mask boolean valuesGravatar Jarred Sumner 2-15/+21
2022-10-21Emit errorsGravatar Jarred Sumner 2-2/+37
2022-10-21Add test for ResolveError.position being inspectableGravatar Jarred Sumner 2-0/+12
2022-10-21Fix segfault when logging position object from failed nested importGravatar Jarred Sumner 1-114/+34
2022-10-21Implement `setMaxListeners` and `getMaxListeners`Gravatar Jarred Sumner 1-1/+46
2022-10-21Fix `import Foo, {bar}` when from hardcoded builtin modules in runtimeGravatar Jarred Sumner 2-19/+34
2022-10-21Fix test failureGravatar Jarred Sumner 1-2/+3
2022-10-21Reload node:fs in developmentGravatar Jarred Sumner 1-0/+9
2022-10-21chore: remove outdated `var` usages (#1364)Gravatar Carter Snook 1-34/+34
2022-10-21Fix "/" in exampleGravatar Jarred Sumner 1-3/+10
2022-10-21Fix infinite loopGravatar Jarred Sumner 1-3/+13
2022-10-21micro-optimizeGravatar Jarred Sumner 1-7/+14
2022-10-20Update install script to use secure flagsGravatar Ashcon Partovi 2-5/+5
2022-10-20Add installation method for HomebrewGravatar Ashcon Partovi 1-0/+7
2022-10-20Fix crash in `highWaterMark`Gravatar Jarred Sumner 1-143/+144
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 7-4/+37
2022-10-19Fix calling `ws.publish` inside `close` when other clients are connectedGravatar Jarred Sumner 3-28/+111
2022-10-19Cache dir loader: Prefer `$BUN_INSTALL` and `$XDG_CACHE_HOME` to `$HOME`. (#1...Gravatar Lucas Garron 1-5/+5
2022-10-19Improve issue templates (#1353)Gravatar Ashcon Partovi 8-89/+136