Skip to content

@sora-soft/framework


@sora-soft/framework / RouteRPCMethod

Type Alias: RouteRPCMethod<T, K>

ts
type RouteRPCMethod<T, K> = (body, options?, raw?) => ReturnType<TypeOfClassMethod<T, K>>;

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

Type Parameters

Type Parameter
T extends Route
K extends keyof T

Parameters

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

Returns

ReturnType<TypeOfClassMethod<T, K>>

基于 WTFPL 许可发布