Skip to content

Commit 4546db9

Browse files
authored
fix: correct AgentCommandValue type (#35)
1 parent c50c6a1 commit 4546db9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
- name: Install
2929
run: pnpm install
30+
- name: Build
31+
run: pnpm build
3032
- name: Lint
3133
run: pnpm run lint
3234
- name: Test

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export type Agent = 'npm' | 'yarn' | 'yarn@berry' | 'pnpm' | 'pnpm@6' | 'bun' | 'deno'
22
export type AgentName = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'deno'
33

4-
export type AgentCommandValue = (string | number)[] | ((args?: string[]) => string[]) | null
4+
export type AgentCommandValue = (string | number)[] | ((args: string[]) => string[]) | null
55

66
export interface AgentCommands {
77
'agent': AgentCommandValue

0 commit comments

Comments
 (0)