UNPKG

745 BTypeScriptView Raw
1/**
2 * @author: JP Lew (jp@cto.ai)
3 * @date: Sunday, 28th April 2019 1:16:46 am
4 * @lastModifiedBy: JP Lew (jp@cto.ai)
5 * @lastModifiedTime: Friday, 7th June 2019 2:56:00 pm
6 * @copyright (c) 2019 CTO.ai
7 */
8/// <reference types="feathersjs__feathers" />
9import feathers from '@feathersjs/feathers';
10export declare const localFeathersHost: string;
11export declare class FeathersClient {
12 feathersClient: feathers.Application;
13 constructor(apiUrl?: string);
14 find(service: string, payload: object): Promise<any>;
15 create(service: string, payload: object, params?: object): Promise<any>;
16 patch(service: string, token: string, payload: object): Promise<any>;
17 remove(service: string, id: string, params?: object): Promise<any>;
18}