Skip to content

Commit

Permalink
fix type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharno committed Aug 22, 2024
1 parent 6b99d2f commit 6be2235
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/typecheck-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ type CreateTuple<L, V = string> =
name: 'ReturnMyError'
}

type Expectation = Promise<Result<string, ReturnMyError>>
type Expectation = ResultAsync<string, ReturnMyError>

const result = safeTry(async function *() {
return okAsync<string, ReturnMyError>('string');
Expand All @@ -2106,7 +2106,7 @@ type CreateTuple<L, V = string> =
name: 'ReturnMyError';
}

type Expectation = Promise<Result<string, ReturnMyError>>
type Expectation = ResultAsync<string, ReturnMyError>

const result = safeTry(async function *() {
return errAsync<string, ReturnMyError>({ name: 'ReturnMyError' });
Expand Down Expand Up @@ -2147,7 +2147,7 @@ type CreateTuple<L, V = string> =
name: 'ReturnMyError';
}

type Expectation = Promise<Result<string, FirstYieldMyError | SecondYieldMyError | ReturnMyError>>
type Expectation = ResultAsync<string, FirstYieldMyError | SecondYieldMyError | ReturnMyError>

const result = safeTry(async function *() {
yield* okAsync<number, FirstYieldMyError>(123).safeUnwrap();
Expand Down

0 comments on commit 6be2235

Please sign in to comment.