From c7f7d9bb825aca8d2c994feb5a42e6dd1e67c60e Mon Sep 17 00:00:00 2001 From: Michael H Date: Fri, 28 Nov 2025 17:51:45 +1100 Subject: [PATCH] run fmt (#25148) prettier released a new update which seems to have changed a few logistics --- .vscode/settings.json | 16 ++++++++++------ packages/bun-types/bun.d.ts | 29 +++++++++++++++++------------ src/js/internal/sql/mysql.ts | 9 +++++---- src/js/internal/sql/postgres.ts | 13 +++++-------- 4 files changed, 37 insertions(+), 30 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c2c967c663..826070d42b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,18 +27,22 @@ "git.ignoreLimitWarning": true, // Zig - "zig.initialSetupDone": true, - "zig.buildOption": "build", + // "zig.initialSetupDone": true, + // "zig.buildOption": "build", "zig.zls.zigLibPath": "${workspaceFolder}/vendor/zig/lib", - "zig.buildArgs": ["-Dgenerated-code=./build/debug/codegen", "--watch", "-fincremental"], - "zig.zls.buildOnSaveStep": "check", + "zig.buildOnSaveArgs": [ + "-Dgenerated-code=./build/debug/codegen", + "--watch", + "-fincremental" + ], + // "zig.zls.buildOnSaveStep": "check", // "zig.zls.enableBuildOnSave": true, // "zig.buildOnSave": true, - "zig.buildFilePath": "${workspaceFolder}/build.zig", + // "zig.buildFilePath": "${workspaceFolder}/build.zig", "zig.path": "${workspaceFolder}/vendor/zig/zig.exe", "zig.zls.path": "${workspaceFolder}/vendor/zig/zls.exe", "zig.formattingProvider": "zls", - "zig.zls.enableInlayHints": false, + // "zig.zls.enableInlayHints": false, "[zig]": { "editor.tabSize": 4, "editor.useTabStops": false, diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 7937b4976c..d510becbda 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -1740,10 +1740,9 @@ declare module "bun" { * @default "esm" */ format?: /** - - * ECMAScript Module format - */ - | "esm" + * ECMAScript Module format + */ + | "esm" /** * CommonJS format * **Experimental** @@ -3317,10 +3316,10 @@ declare module "bun" { function color( input: ColorInput, outputFormat?: /** - * True color ANSI color string, for use in terminals - * @example \x1b[38;2;100;200;200m - */ - | "ansi" + * True color ANSI color string, for use in terminals + * @example \x1b[38;2;100;200;200m + */ + | "ansi" | "ansi-16" | "ansi-16m" /** @@ -5651,11 +5650,17 @@ declare module "bun" { maxBuffer?: number; } - interface SpawnSyncOptions - extends BaseOptions {} + interface SpawnSyncOptions extends BaseOptions< + In, + Out, + Err + > {} - interface SpawnOptions - extends BaseOptions { + interface SpawnOptions extends BaseOptions< + In, + Out, + Err + > { /** * If true, stdout and stderr pipes will not automatically start reading * data. Reading will only begin when you access the `stdout` or `stderr` diff --git a/src/js/internal/sql/mysql.ts b/src/js/internal/sql/mysql.ts index 766512d026..9dce2eb17c 100644 --- a/src/js/internal/sql/mysql.ts +++ b/src/js/internal/sql/mysql.ts @@ -455,10 +455,11 @@ class PooledMySQLConnection { } } -class MySQLAdapter - implements - DatabaseAdapter -{ +class MySQLAdapter implements DatabaseAdapter< + PooledMySQLConnection, + $ZigGeneratedClasses.MySQLConnection, + $ZigGeneratedClasses.MySQLQuery +> { public readonly connectionInfo: Bun.SQL.__internal.DefinedPostgresOrMySQLOptions; public readonly connections: PooledMySQLConnection[]; diff --git a/src/js/internal/sql/postgres.ts b/src/js/internal/sql/postgres.ts index d4d1828719..99123d93a3 100644 --- a/src/js/internal/sql/postgres.ts +++ b/src/js/internal/sql/postgres.ts @@ -672,14 +672,11 @@ class PooledPostgresConnection { } } -class PostgresAdapter - implements - DatabaseAdapter< - PooledPostgresConnection, - $ZigGeneratedClasses.PostgresSQLConnection, - $ZigGeneratedClasses.PostgresSQLQuery - > -{ +class PostgresAdapter implements DatabaseAdapter< + PooledPostgresConnection, + $ZigGeneratedClasses.PostgresSQLConnection, + $ZigGeneratedClasses.PostgresSQLQuery +> { public readonly connectionInfo: Bun.SQL.__internal.DefinedPostgresOrMySQLOptions; public readonly connections: PooledPostgresConnection[];