Skip to content

Commit

Permalink
prefer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Apr 5, 2022
1 parent e47bfa6 commit 140c8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ export interface RequestHandler<
(event: RequestEvent<Params>): MaybePromise<RequestHandlerOutput<Output>>;
}

export type RequestHandlerOutput<Output extends ResponseBody = ResponseBody> = {
export interface RequestHandlerOutput<Output extends ResponseBody = ResponseBody> {
status?: number;
headers?: Headers | Partial<ResponseHeaders>;
body?: Output;
};
}

export type ResponseBody = JSONValue | Uint8Array | ReadableStream | import('stream').Readable;

Expand Down

0 comments on commit 140c8e6

Please sign in to comment.