UNPKG

pure-orm

Version:

A SQL Toolkit based on pure business objects passed to and from stateful data access objects

26 lines (25 loc) 683 B
import { IModel, ICollection, IColumns } from '../../src/index'; export declare const tableName: string; export declare const columns: IColumns; interface IPersonProps { id: number; name: string; } export declare class Person implements IModel { id: number; name: string; constructor(props: IPersonProps); sayHello(): void; } export declare class Persons implements ICollection<Person> { models: Array<Person>; constructor({ models }: any); introductions(): void; } export declare const personEntity: { tableName: string; columns: import("../../src/core").IColumn[]; Model: typeof Person; Collection: typeof Persons; }; export {};