From f87624bb2c4e488995294749b21f853500df043e Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 14 Nov 2024 12:44:35 +0100 Subject: [PATCH] chore: add failing test --- fixtures/input/variable.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fixtures/input/variable.ts b/fixtures/input/variable.ts index 907377a..23e1273 100644 --- a/fixtures/input/variable.ts +++ b/fixtures/input/variable.ts @@ -137,7 +137,7 @@ export const complexArrays = { // Nested Object Types with Methods export const complexObject = { handlers: { - async onSuccess(data: T): Promise { + async onSuccess(data: T): Result, Error> { console.log(data) }, onError(error: Error & { code?: number }): never { @@ -199,3 +199,13 @@ export const CONFIG_MAP = { } } } as const + +export const command = { + run: async (command: string, options?: CliOptions): Promise, Error>> => { + return await runCommand(command, options) + }, + + runSync: async (command: string, options?: CliOptions): Promise, Error>> => { + return await runCommand(command, options) + }, +}