Skip to content

Commit

Permalink
chore: add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 14, 2024
1 parent 1a69215 commit f87624b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion fixtures/input/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const complexArrays = {
// Nested Object Types with Methods
export const complexObject = {
handlers: {
async onSuccess<T>(data: T): Promise<void> {
async onSuccess<T>(data: T): Result<Subprocess<Writable, Readable, Readable>, Error> {
console.log(data)
},
onError(error: Error & { code?: number }): never {
Expand Down Expand Up @@ -199,3 +199,13 @@ export const CONFIG_MAP = {
}
}
} as const

export const command = {
run: async (command: string, options?: CliOptions): Promise<Result<Subprocess<Writable, Readable, Readable>, Error>> => {
return await runCommand(command, options)
},

runSync: async (command: string, options?: CliOptions): Promise<Result<Subprocess<Writable, Readable, Readable>, Error>> => {
return await runCommand(command, options)
},
}

0 comments on commit f87624b

Please sign in to comment.