pure-orm
Version:
A SQL Toolkit based on pure business objects passed to and from stateful data access objects
26 lines (25 loc) • 759 B
TypeScript
import { IModel, ICollection, IColumns } from '../../../src/index';
export declare const tableName: string;
export declare const columns: IColumns;
interface IFeatureSwitchProps {
id: string | number;
label: string;
on: boolean;
}
export declare class FeatureSwitch implements IModel {
id: string | number;
label: string;
on: boolean;
constructor(props: IFeatureSwitchProps);
}
export declare class FeatureSwitches implements ICollection<FeatureSwitch> {
models: Array<FeatureSwitch>;
constructor({ models }: any);
}
export declare const featureSwitchEntity: {
tableName: string;
columns: import("../../../src/core").IColumn[];
Model: typeof FeatureSwitch;
Collection: typeof FeatureSwitches;
};
export {};