feathers-ottoman
Version:
A Feathers service adapter for the Ottoman ODM
14 lines (13 loc) • 504 B
TypeScript
import { ServiceOptions } from '@feathersjs/adapter-commons';
import { SearchConsistency, ModelTypes } from 'ottoman';
interface OttomanOptions {
Model: ModelTypes;
ottoman: {
lean: boolean;
consistency: SearchConsistency;
};
}
declare type OttomanServiceOptions = OttomanOptions & Partial<ServiceOptions>;
declare type Filters = Record<string, any>;
declare type Methods = 'find' | 'default';
export { OttomanOptions, OttomanServiceOptions, Filters, Methods, };