mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +01:00
MAESTRO: Fix linting config and formatting
This commit is contained in:
@@ -74,9 +74,9 @@ describe("api client", () => {
|
||||
const stream = new ReadableStream<Uint8Array>({
|
||||
start(controller) {
|
||||
controller.enqueue(encoder.encode("event: progress\n"));
|
||||
controller.enqueue(encoder.encode("data: {\"step\": 1}\n\n"));
|
||||
controller.enqueue(encoder.encode('data: {"step": 1}\n\n'));
|
||||
controller.enqueue(encoder.encode("event: result\n"));
|
||||
controller.enqueue(encoder.encode("data: {\"done\": true}\n\n"));
|
||||
controller.enqueue(encoder.encode('data: {"done": true}\n\n'));
|
||||
controller.close();
|
||||
},
|
||||
});
|
||||
|
||||
@@ -42,10 +42,7 @@ export interface ApiClient {
|
||||
request<TResponse>(path: string, init?: RequestInit & { body?: unknown }): Promise<TResponse>;
|
||||
get<TResponse>(path: string, init?: RequestInit): Promise<TResponse>;
|
||||
post<TResponse, TBody>(path: string, body: TBody, init?: RequestInit): Promise<TResponse>;
|
||||
stream<TBody, TEvent>(
|
||||
path: string,
|
||||
options: StreamRequestOptions<TBody, TEvent>,
|
||||
): Promise<void>;
|
||||
stream<TBody, TEvent>(path: string, options: StreamRequestOptions<TBody, TEvent>): Promise<void>;
|
||||
}
|
||||
|
||||
type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
||||
|
||||
Reference in New Issue
Block a user