typescript-mysql-model
Version:
{ "version": "1.2.46", "name": "typescript-mysql-model", "description": "", "main": "index.js", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url":
17 lines (16 loc) • 518 B
TypeScript
import { ISetting } from "./isetting";
import { IDatabaseTable } from "./mysql-database-definition";
import { TableClass } from "./table-class";
export interface Dict<value> {
[key: string]: value;
}
export declare class InterfaceBuilder {
private settings;
private mysqlTypes;
constructor(settings: ISetting, mysqlTypes: Dict<string>);
renderTs(tableClass: TableClass, table: IDatabaseTable): string;
private getMetaText;
private buildTypeRow;
private isEnum;
private getTsType;
}