pkgs/types/src/lib/types.ts (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
export type JSONSchema = Record<string, any>;
export interface RouteNode {
name: string;
children: Record<string, RouteNode>;
params?: {
name: string;
type: string;
};
data?: any;
}
export interface OpenAPISpec {
paths: Record<string, unknown>;
components?: Record<string, JSONSchema>;
}
|