示例工程 25-vue-reactivity-streaming
25-vue-reactivity-streaming/app/.tsc/src/lib/stream-store.d.ts
import { type ShallowRef } from "vue";
import type { StreamEvent } from "../../shared/ipc";
export type StreamStore = {
events: ShallowRef<StreamEvent[]>;
received: ShallowRef<number>;
flushes: ShallowRef<number>;
paused: ShallowRef<boolean>;
pausedCount: ShallowRef<number>;
pending: ShallowRef<number>;
dropped: ShallowRef<number>;
pushBatch: (batch: StreamEvent[]) => void;
flushNow: () => void;
setPaused: (value: boolean) => void;
reset: () => void;
};
export declare function createStreamStore(capacity?: number, flushMs?: number): StreamStore;
//# sourceMappingURL=stream-store.d.ts.map