UNPKG

auto-typegen

Version:

Automatically generate TypeScript interfaces from JSON data, API responses, or database schemas. Perfect for Mongoose, Sequelize, and raw data. Simplify your workflow and ensure type safety with just one function call!

12 lines (11 loc) 325 B
export declare class TypeGenerator { private generatedInterfaces; private usedInterfaceNames; generate(data: any, interfaceName?: string): string; private processData; private processArray; private processObject; private getObjectSignature; private capitalize; private formatInterfaces; }