@becomes/cms-cloud-client
Version:
SDK for accessing BCMS Cloud API
10 lines (9 loc) • 509 B
TypeScript
import type { FSDBRepository } from '@becomes/purple-cheetah-mod-fsdb/types';
import type { MongoDBRepository } from '@becomes/purple-cheetah-mod-mongodb/types';
import type { Module } from '@becomes/purple-cheetah/types';
import { Limit } from './models';
export interface LimitRepoMethods {
findByName(name: string): Promise<Limit | null>;
}
export type LimitRepo = MongoDBRepository<Limit, LimitRepoMethods> | FSDBRepository<Limit, LimitRepoMethods>;
export declare function createLimitRepo(): Module;