Skip to content

Commit

Permalink
Add back removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Mar 20, 2023
1 parent ac94a7a commit 503cc2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/remix-server-runtime/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export type JsonFunction = <Data extends unknown>(
init?: number | ResponseInit
) => TypedResponse<Data>;

// must be a type since this is a subtype of response
// interfaces must conform to the types they extend
export type TypedResponse<T extends unknown = unknown> = Omit<
Response,
"json"
Expand Down

0 comments on commit 503cc2d

Please sign in to comment.