Skip to content

Commit ce86458

Browse files
committed
format
1 parent 8c5ee5d commit ce86458

6 files changed

Lines changed: 11 additions & 18 deletions

File tree

.gemini/settings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"mcpServers": {
33
"playwright": {
44
"command": "npx",
5-
"args": [
6-
"-y",
7-
"@playwright/mcp@latest"
8-
]
5+
"args": ["-y", "@playwright/mcp@latest"]
96
}
107
}
11-
}
8+
}

src/Transloadit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface AwaitAssemblyCompletionOptions {
112112
* Return `false` to stop polling early and return the current assembly status.
113113
* Useful for watch mode where a newer job may supersede the current one.
114114
*/
115-
onPoll?: () => boolean | void
115+
onPoll?: () => boolean | undefined
116116
}
117117

118118
export interface SmartCDNUrlOptions {

src/cli/OutputCtl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export type LogLevelValue = (typeof LOG_LEVEL)[LogLevelName]
1717
export const LOG_LEVEL_DEFAULT: LogLevelValue = LOG_LEVEL.NOTICE
1818

1919
/** Valid log level names for CLI parsing */
20-
export const LOG_LEVEL_NAMES = Object.keys(LOG_LEVEL).map((k) => k.toLowerCase()) as Lowercase<
21-
LogLevelName
22-
>[]
20+
export const LOG_LEVEL_NAMES = Object.keys(LOG_LEVEL).map((k) =>
21+
k.toLowerCase(),
22+
) as Lowercase<LogLevelName>[]
2323

2424
/** Valid numeric log level values */
2525
const LOG_LEVEL_VALUES = new Set(Object.values(LOG_LEVEL))

src/cli/assemblies-create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import tty from 'node:tty'
1010
import { promisify } from 'node:util'
1111
import type { StepsInput } from '../alphalib/types/template.ts'
1212
import type { CreateAssemblyParams } from '../apiTypes.ts'
13-
import type { AssemblyStatus, CreateAssemblyOptions, Transloadit } from '../Transloadit.ts'
13+
import type { CreateAssemblyOptions, Transloadit } from '../Transloadit.ts'
1414
import JobsPromise from './JobsPromise.ts'
1515
import type { IOutputCtl } from './OutputCtl.ts'
1616
import { isErrnoException } from './types.ts'

src/cli/commands/BaseCommand.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ import process from 'node:process'
22
import { Command, Option } from 'clipanion'
33
import 'dotenv/config'
44
import { Transloadit as TransloaditClient } from '../../Transloadit.ts'
5-
import OutputCtl, {
6-
type IOutputCtl,
7-
LOG_LEVEL_DEFAULT,
8-
LOG_LEVEL_NAMES,
9-
parseLogLevel,
10-
} from '../OutputCtl.ts'
5+
import type { IOutputCtl } from '../OutputCtl.ts'
6+
import OutputCtl, { LOG_LEVEL_DEFAULT, LOG_LEVEL_NAMES, parseLogLevel } from '../OutputCtl.ts'
117

128
export abstract class BaseCommand extends Command {
139
logLevelOption = Option.String('-l,--log-level', {

test/unit/cli/JobsPromise.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('JobsPromise', () => {
3030
expect(results).toHaveLength(2)
3131
})
3232

33-
it('should throw if error handler is not set and promise rejects', async () => {
33+
it('should throw if error handler is not set and promise rejects', () => {
3434
const jobs = new JobsPromise()
3535
// Intentionally NOT setting error handler
3636

@@ -40,7 +40,7 @@ describe('JobsPromise', () => {
4040

4141
// This should throw because no error handler is set
4242
expect(() => jobs.add(rejectingPromise)).toThrow(
43-
'JobsPromise: error handler must be set before adding promises'
43+
'JobsPromise: error handler must be set before adding promises',
4444
)
4545
})
4646
})

0 commit comments

Comments
 (0)