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