Skip to content

Commit

Permalink
refactor(req): declare method as definite (never undefined)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 13, 2024
1 parent 2070963 commit bc8be54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/req/src/prototype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { requestTypeIs } from './util/request-type-is'
export class Request<Body = unknown> extends IncomingMessage {
// assigned by node:http
declare url: string
declare method: string

// assigned by App
declare originalUrl: string
Expand Down

0 comments on commit bc8be54

Please sign in to comment.