mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-15 07:04:01 -06:00
26 lines
673 B
TypeScript
26 lines
673 B
TypeScript
export const STATE_SCHEMA_INLINE_PLUGIN_NAME: string;
|
|
|
|
export type StateSchemaInlinePluginOptions = {
|
|
vitestFsModuleCache?: boolean;
|
|
};
|
|
|
|
export type VitestCacheKeyGenerator = (context: {
|
|
id: string;
|
|
sourceCode: string;
|
|
environment: unknown;
|
|
}) => string | undefined | null | false;
|
|
|
|
export function createStateSchemaInlinePlugin(
|
|
rootDir?: string,
|
|
options?: StateSchemaInlinePluginOptions,
|
|
): {
|
|
name: string;
|
|
load(
|
|
this: { addWatchFile(id: string): void },
|
|
id: string,
|
|
): { code: string; moduleType: "js" } | null;
|
|
configureVitest?: (context: {
|
|
experimental_defineCacheKeyGenerator(callback: VitestCacheKeyGenerator): void;
|
|
}) => void;
|
|
};
|