e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
32 lines
818 B
TypeScript
32 lines
818 B
TypeScript
interface CompileOptions {
|
|
target: Target;
|
|
filename?: string;
|
|
sourceMaps?: boolean;
|
|
injectServerOnly?: boolean;
|
|
}
|
|
|
|
interface CompileResult {
|
|
code: string;
|
|
map?: object | null;
|
|
}
|
|
|
|
declare const DIRECTIVE = "use generative";
|
|
|
|
declare class GenerativeCompileError extends Error {
|
|
constructor(message: string, filename?: string);
|
|
}
|
|
|
|
type Target = "client" | "server";
|
|
|
|
type ToolType = "backend" | "frontend" | "human" | "provider";
|
|
|
|
declare function compileGenerative(code: string, options: CompileOptions): CompileResult;
|
|
|
|
declare namespace entry_root_exports {
|
|
export { CompileOptions, CompileResult, DIRECTIVE, GenerativeCompileError, Target, ToolType, compileGenerative, isGenerativeModule };
|
|
}
|
|
|
|
declare function isGenerativeModule(code: string): boolean;
|
|
|
|
export { entry_root_exports as entry_root };
|