Fix TS error

parent b127efa9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment