UNPKG

@gati-framework/runtime

Version:

Gati runtime execution engine for running handler-based applications

39 lines 911 B
/** * @module runtime/types/schema * @description Type schema configuration for dynamic typing */ /** * Schema definition for request state */ export interface StateSchema { [key: string]: 'string' | 'number' | 'boolean' | 'object' | 'array'; } /** * Schema definition for modules */ export interface ModuleSchema { [moduleName: string]: { [method: string]: { params?: Record<string, string>; returns?: string; }; }; } /** * Complete type schema configuration */ export interface TypeSchema { state?: StateSchema; modules?: ModuleSchema; refs?: { sessionId?: string; userId?: string; tenantId?: string; [key: string]: string | undefined; }; } /** * Generate TypeScript declarations from schema */ export declare function generateTypes(schema: TypeSchema): string; //# sourceMappingURL=schema.d.ts.map