UNPKG

dynamic-record

Version:

A bare minimum Javascript implementation of the Active Record pattern

15 lines (14 loc) 267 B
export interface QueryOptions { sort?: Sort; limit?: number; offset?: number; } interface Sort { [key: string]: string; } export interface DataObject extends Object { } export interface MongoDBObject extends DataObject { _id: string; } export {};