UNPKG

@rikishi/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

13 lines (9 loc) 461 B
declare module '@rikishi/watermelondb/Database/CollectionMap' { import { Collection, Database, Model, TableName } from '@rikishi/watermelondb' import { Class } from '@rikishi/watermelondb/utils/common' export default class CollectionMap { public map: { [tableName: string]: Collection<any> } public constructor(database: Database, modelClasses: Array<Class<Model>>) public get<T extends Model>(tableName: TableName<T>): Collection<T> } }