Skip to content

Commit 05feb80

Browse files
committed
refactor: declare RunnerOptions 'as const'
1 parent 79a0cb4 commit 05feb80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runner.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export interface RunnerOptions {
2424
showConfig?: boolean;
2525
}
2626

27-
const DefaultRunnerOpts: RunnerOptions = Object.freeze({
28-
args: [],
27+
const DefaultRunnerOpts: RunnerOptions = {
28+
args: <string[]>[],
2929
headless: false,
3030
out: process.stdout,
3131
showConfig: true,
32-
});
32+
} as const;
3333

3434
export type RunnerSpawnOptions = SpawnOptions & RunnerOptions;
3535

0 commit comments

Comments
 (0)