mysql-live-client
Version:
The client side script of mysql-live package.
16 lines (15 loc) • 492 B
TypeScript
export default class BaseCollection {
name: string;
items: any[];
primaryKeyColumn: string;
__single_item_collection__: boolean;
constructor(name: string);
loop: (fn: (item?: any) => void) => void;
item: any;
get: any;
setId(objectToPassId: any, theValueOnlyId: string | number): any;
getId(objectToGetIdOf: any): string | number;
find(criteria: any): any[];
findSingle(criteria: any): any;
}
export declare type LoopFn = (item?: any) => void;