@omer-x/typesculptor
Version:
generates interpretable json objects to generate TypeScript types from JSON Schemas
12 lines (8 loc) • 350 B
text/typescript
import { ReferenceObject } from '@omer-x/openapi-types/reference';
import { SchemaObject } from '@omer-x/openapi-types/schema';
type Definition = {
dependencies: string[];
body: string;
};
declare function generateTypeDefinition(schema: SchemaObject | ReferenceObject, indentation?: number): Definition;
export { generateTypeDefinition };