import { Application, Paginated, Params, Service } from '@feathersjs/feathers'; import PaginatedServiceModel from '../providers/PaginatedServiceModel'; import { AsyncKey } from '../providers/ServiceModel'; export default interface ServiceModelStatic { new(...args: any): Model; get App(): Application; _find(query: Params['query']): Promise>; _patch(id: string | null, data: any, params?: Params): any; // @ts-ignore find(query: Params): PaginatedServiceModel> get(id: AsyncKey, query?: Params): Promise> create(data: any, params?: Params): Promise> get service(): Service servicePath: string; } export type ModelInstance = InstanceType export type ModelDocumentType = ModelInstance['entry'];