Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
577 B
TypeScript
16 lines
577 B
TypeScript
type ErrorState = 'fresh' | 'error';
|
|
interface RouteState {
|
|
state: ErrorState;
|
|
error?: Error;
|
|
}
|
|
export interface ServerState {
|
|
routes: Map<string, RouteState>;
|
|
state: ErrorState;
|
|
error?: Error;
|
|
}
|
|
export declare function createServerState(): ServerState;
|
|
export declare function setRouteError(serverState: ServerState, pathname: string, error: Error | undefined): void;
|
|
export declare function setServerError(serverState: ServerState, error: Error): void;
|
|
export declare function clearRouteError(serverState: ServerState, pathname: string): void;
|
|
export {};
|