Skip to content

Commit

Permalink
fix: remove unused types (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito authored Feb 16, 2024
1 parent 5641cf1 commit a78d57d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/browser/setupWorker/glossary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,6 @@ export interface StringifiedResponse extends ResponseInit {
body: string | ArrayBuffer | ReadableStream<Uint8Array> | null
}

/**
* Map of the events that can be sent to the Service Worker
* only as a part of a single `fetch` event handler.
*/
export interface ServiceWorkerFetchEventMap {
MOCK_RESPONSE(payload: StringifiedResponse): void
MOCK_RESPONSE_START(payload: StringifiedResponse): void

MOCK_NOT_FOUND(): void
NETWORK_ERROR(payload: { name: string; message: string }): void
INTERNAL_ERROR(payload: { status: number; body: string }): void
}

export interface ServiceWorkerBroadcastChannelMessageMap {
MOCK_RESPONSE_CHUNK(payload: Uint8Array): void
MOCK_RESPONSE_END(): void
}

export interface StrictEventListener<EventType extends Event> {
(event: EventType): void
}
Expand Down

0 comments on commit a78d57d

Please sign in to comment.