Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 26, 2021
1 parent b127efa commit 9f0330f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/server/web/spec-compliant/fetch-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export class FetchEvent {
[responseSymbol]?: Promise<Response>;
[passThroughSymbol] = false

// eslint-disable-next-line @typescript-eslint/no-useless-constructor
constructor(_request: Request) {}

respondWith(response: Response | Promise<Response>): void {
if (!this[responseSymbol]) {
this[responseSymbol] = Promise.resolve(response)
Expand Down

0 comments on commit 9f0330f

Please sign in to comment.