Skip to content

Commit

Permalink
fix: notFound type can only be true
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Sep 15, 2021
1 parent 4bc301c commit 94b4613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function setHeaders(headers: IncomingHttpHeaders) {
/**
* Send the user a 404
*/
export function notFound(options: { headers?: IncomingHttpHeaders } = {}) {
export function notFound(options: { headers?: IncomingHttpHeaders } = {}): {
notFound: true;
} {
setHeaders(options.headers);

return {
Expand Down

0 comments on commit 94b4613

Please sign in to comment.