Initial commit: MoreminiMore new Astro website with PDPA compliance

This commit is contained in:
Kunthawat Greethong
2026-04-17 17:41:27 +07:00
commit 0219413190
11129 changed files with 1634279 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
export type ErrorState = 'fresh' | 'error';
export 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 hasAnyFailureState(serverState: ServerState): boolean;
export declare function setRouteError(serverState: ServerState, pathname: string, error: Error): void;
export declare function setServerError(serverState: ServerState, error: Error): void;
export declare function clearRouteError(serverState: ServerState, pathname: string): void;