hook-fetch
Version:
A lightweight and modern HTTP request library developed based on the native Fetch API of the browser, providing a user-friendly interface similar to Axios and powerful extensibility.
23 lines (22 loc) • 548 B
TypeScript
import { HookFetchPlugin } from "./types-DKk321dw.js";
//#region src/plugins/sse.d.ts
interface SSETextDecoderPluginOptions {
splitSeparator: string;
lineSeparator: string | undefined;
trim: boolean;
json: boolean;
prefix: string;
doneSymbol: string;
}
declare function sseTextDecoderPlugin({
splitSeparator,
lineSeparator,
trim,
json,
prefix,
doneSymbol
}?: Partial<SSETextDecoderPluginOptions>): HookFetchPlugin<unknown, {
sseAble: boolean;
}>;
//#endregion
export { SSETextDecoderPluginOptions, sseTextDecoderPlugin };