Skip to content

@sora-soft/framework


@sora-soft/framework / RawRouteRPCMethod

Type Alias: RawRouteRPCMethod<T, K>

ts
type RawRouteRPCMethod<T, K> = (body, options?, raw?) => Promise<Response<ThenArg<ReturnType<TypeOfClassMethod<T, K>>>>>;

Defined in: packages/framework/src/lib/rpc/provider/ProviderManager.ts:21

Type Parameters

Type Parameter
T extends Route
K extends keyof T

Parameters

ParameterType
bodyUndefinedToVoid<Parameters<TypeOfClassMethod<T, K>>[0]>
options?IRequestOptions
raw?true

Returns

Promise<Response<ThenArg<ReturnType<TypeOfClassMethod<T, K>>>>>

基于 WTFPL 许可发布