winterspec
Version:
Write Winter-CG compatible routes with filesystem routing and tons of features
17 lines (16 loc) • 400 B
TypeScript
export type BundlerBuildResult = {
buildUpdatedAtMs: number;
} & ({
type: "success";
bundlePath: string;
} | {
type: "failure";
errorMessage: string;
});
export type BundlerRpcFunctions = {
waitForAvailableBuild: () => Promise<BundlerBuildResult>;
};
export type HttpServerRpcFunctions = {
onBuildStart: () => void;
onBuildEnd: (build: BundlerBuildResult) => void;
};