Skip to content

Commit

Permalink
fix(types): account for undefined value for $fetch return type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala authored Apr 2, 2024
1 parent fcc0f9a commit 91ef6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type MiddlewareOf<
Route extends string,
Method extends RouterMethod | "default",
> = Method extends keyof InternalApi[MatchedRoutes<Route>]
? Exclude<InternalApi[MatchedRoutes<Route>][Method], Error | void>
? InternalApi[MatchedRoutes<Route>][Method]
: never;

export type TypedInternalResponse<
Expand Down

0 comments on commit 91ef6d0

Please sign in to comment.