fusion-plugin-rpc
Version:
Fetch data on the server and client with an RPC style interface.
20 lines • 798 B
TypeScript
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import type { Token, Context } from 'fusion-core';
import type { Options } from 'koa-bodyparser';
import type { RPCConfigType, RPCServiceType } from './types';
export declare const RPCToken: Token<RPCServiceType>;
export type HandlerType = {
[x: string]: (...args: any) => any;
};
export declare const RPCHandlersToken: Token<HandlerType>;
export declare const BodyParserOptionsToken: Token<Options>;
export declare const RPCHandlersConfigToken: Token<RPCConfigType>;
export declare const RPCQueryParamsToken: Token<{
from: (ctx: Context) => Array<[string, string]>;
}>;
//# sourceMappingURL=tokens.d.ts.map