diff --git a/package-lock.json b/package-lock.json index 72599f9..7f7012c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3512,9 +3512,9 @@ } }, "node_modules/prettier": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.4.tgz", - "integrity": "sha512-N2MylSdi48+5N/6S5j+maeHbUSIzzZ5uOcX5Hm4QpV8Dkb1HFjfAKTKX6yNPJQD9AhcT3ifHNB66tWTTJDi11Q==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", "dev": true, "license": "MIT", "bin": { diff --git a/src/commands/field-create.ts b/src/commands/field-create.ts index 7d0571f..f69a31f 100644 --- a/src/commands/field-create.ts +++ b/src/commands/field-create.ts @@ -19,9 +19,7 @@ export const VALID_FIELD_TYPES = [ ] export type FieldScope = - | { mode: 'workspace' } - | { mode: 'single'; listId: string } - | { mode: 'bulk'; listIds: string[] } + { mode: 'workspace' } | { mode: 'single'; listId: string } | { mode: 'bulk'; listIds: string[] } export type ListFieldOutcome = { listId: string diff --git a/src/commands/inbox.ts b/src/commands/inbox.ts index a8b9ef2..7dc04ad 100644 --- a/src/commands/inbox.ts +++ b/src/commands/inbox.ts @@ -8,12 +8,7 @@ import type { TaskSummary } from './tasks.js' import { summarize, buildTypeMap } from './tasks.js' export type TimePeriod = - | 'today' - | 'yesterday' - | 'last_7_days' - | 'earlier_this_month' - | 'last_month' - | 'older' + 'today' | 'yesterday' | 'last_7_days' | 'earlier_this_month' | 'last_month' | 'older' interface TimePeriodDef { key: TimePeriod diff --git a/src/index.ts b/src/index.ts index 88a938f..2c84e77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1162,8 +1162,7 @@ export function buildProgram(programName = basename(process.argv[1] ?? 'cup')): } let customFields: - | Array<{ field_id: string; operator: string; value?: unknown }> - | undefined + Array<{ field_id: string; operator: string; value?: unknown }> | undefined if (opts.field?.length) { if (opts.field.length % 2 !== 0) { throw new Error('--field requires pairs: --field "Name" value') diff --git a/src/util/batch.ts b/src/util/batch.ts index 339dca1..7d07bc8 100644 --- a/src/util/batch.ts +++ b/src/util/batch.ts @@ -1,6 +1,5 @@ export type BatchOutcome = - | { item: T; ok: true; result: R } - | { item: T; ok: false; error: Error } + { item: T; ok: true; result: R } | { item: T; ok: false; error: Error } export async function runInBatches( items: readonly T[],