histoire
Version:
A fast story book powered by Vite
24 lines • 852 B
TypeScript
import '../dom/native-events.js';
import type { ServerStory, ServerStoryFile } from '@histoire/shared';
import type { MessagePort } from 'node:worker_threads';
export interface Payload {
root: string;
base: string;
port: MessagePort;
storyFile: ServerStoryFile;
/** Captured cache revision; task-port delivery happens before story execution. */
invalidation?: {
/** Monotonic revision within this context-owned worker pool. */
revision: number;
/** Bounded set of changed project modules. */
files: string[];
/** Full eviction once the bounded inventory overflows. */
all: boolean;
};
}
export interface ReturnData {
storyData: ServerStory[];
}
export default _default;
declare function _default(payload: Payload): Promise<ReturnData>;
//# sourceMappingURL=worker.d.ts.map