Skip to content

Commit

Permalink
fix(send): add explicit return type
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 16, 2022
1 parent c3eb8ea commit 2736b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MIMES } from './consts'

const defer = typeof setImmediate !== 'undefined' ? setImmediate : (fn: Function) => fn()

export function send (res: ServerResponse, data: any, type?: string) {
export function send (res: ServerResponse, data: any, type?: string): Promise<void> {
if (type) {
defaultContentType(res, type)
}
Expand Down

0 comments on commit 2736b3a

Please sign in to comment.