From 6be2235fd740cfc694c05067a2e17ef8e33195af Mon Sep 17 00:00:00 2001 From: sharno Date: Thu, 22 Aug 2024 00:14:50 -0400 Subject: [PATCH] fix type tests --- tests/typecheck-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/typecheck-tests.ts b/tests/typecheck-tests.ts index c637d5ca..bdd6058b 100644 --- a/tests/typecheck-tests.ts +++ b/tests/typecheck-tests.ts @@ -2091,7 +2091,7 @@ type CreateTuple = name: 'ReturnMyError' } - type Expectation = Promise> + type Expectation = ResultAsync const result = safeTry(async function *() { return okAsync('string'); @@ -2106,7 +2106,7 @@ type CreateTuple = name: 'ReturnMyError'; } - type Expectation = Promise> + type Expectation = ResultAsync const result = safeTry(async function *() { return errAsync({ name: 'ReturnMyError' }); @@ -2147,7 +2147,7 @@ type CreateTuple = name: 'ReturnMyError'; } - type Expectation = Promise> + type Expectation = ResultAsync const result = safeTry(async function *() { yield* okAsync(123).safeUnwrap();