UNPKG

@becomes/cms-cloud-client

Version:

SDK for accessing BCMS Cloud API

10 lines (9 loc) 536 B
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 { Feature } from './models'; export interface FeatureRepoMethods { findAllByAvailable(available: boolean): Promise<Feature[]>; } export type FeatureRepo = MongoDBRepository<Feature, FeatureRepoMethods> | FSDBRepository<Feature, FeatureRepoMethods>; export declare function createFeatureRepo(): Module;