Skip to content

Commit a78d57d

Browse files
authoredFeb 16, 2024··
fix: remove unused types (#2043)
1 parent 5641cf1 commit a78d57d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed
 

‎src/browser/setupWorker/glossary.ts

-18
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,6 @@ export interface StringifiedResponse extends ResponseInit {
7575
body: string | ArrayBuffer | ReadableStream<Uint8Array> | null
7676
}
7777

78-
/**
79-
* Map of the events that can be sent to the Service Worker
80-
* only as a part of a single `fetch` event handler.
81-
*/
82-
export interface ServiceWorkerFetchEventMap {
83-
MOCK_RESPONSE(payload: StringifiedResponse): void
84-
MOCK_RESPONSE_START(payload: StringifiedResponse): void
85-
86-
MOCK_NOT_FOUND(): void
87-
NETWORK_ERROR(payload: { name: string; message: string }): void
88-
INTERNAL_ERROR(payload: { status: number; body: string }): void
89-
}
90-
91-
export interface ServiceWorkerBroadcastChannelMessageMap {
92-
MOCK_RESPONSE_CHUNK(payload: Uint8Array): void
93-
MOCK_RESPONSE_END(): void
94-
}
95-
9678
export interface StrictEventListener<EventType extends Event> {
9779
(event: EventType): void
9880
}

0 commit comments

Comments
 (0)
Please sign in to comment.