换格式化器带来的差异,只有 5 个文件:长联合类型改成每项一行、以 | 开头。 和上一个提交分开,方便 blame 时跳过(git blame --ignore-rev)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44295188b9
commit
572a818d49
5 files changed
+12
-5
No files matched your search
@@ -16,7 +16,8 @@ export const db = drizzle(client, { schema })
|
||||
* `$client`、`batch` 等)一并抹掉了。
|
||||
*/
|
||||
export type DbOrTx =
|
||||
typeof db | Parameters<Parameters<typeof db.transaction>[0]>[0]
|
||||
| typeof db
|
||||
| Parameters<Parameters<typeof db.transaction>[0]>[0]
|
||||
|
||||
/**
|
||||
* 读出来的时刻统一成 ISO 8601 UTC,和写侧的 `new Date().toISOString()` 同形状。
|
||||
|
||||
@@ -177,7 +177,8 @@ async function runJob<T>(
|
||||
|
||||
try {
|
||||
const parsed = JSON.parse(stdout) as
|
||||
{ ok: true; case?: CaseResult; display?: unknown } | SqlJobFailure
|
||||
| { ok: true; case?: CaseResult; display?: unknown }
|
||||
| SqlJobFailure
|
||||
if (!parsed.ok) return parsed
|
||||
return { ok: true, value: (parsed.case ?? parsed.display) as T }
|
||||
} catch {
|
||||
|
||||
Reference in new issue
Block a user