Skip to content

Commit

Permalink
chore: bump microbundle, dedupe typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jul 5, 2023
1 parent fdb2f55 commit abc23ce
Show file tree
Hide file tree
Showing 3 changed files with 1,702 additions and 377 deletions.
3 changes: 0 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ export function gretch<T = DefaultGretchResponse, A = DefaultGretchError>(
}

if (response.ok) {
// @ts-expect-error resolved is used before being assigned
data = resolved as T;
} else {
// @ts-expect-error resolved is used before being assigned
error = (resolved || new HTTPError(response)) as A;
}
} catch (e) {
Expand All @@ -160,7 +158,6 @@ export function gretch<T = DefaultGretchResponse, A = DefaultGretchError>(
status,
data,
error,
// @ts-expect-error resolved is used before being assigned
response,
};

Expand Down
Loading

0 comments on commit abc23ce

Please sign in to comment.