Type Alias GetRPCClientInterface<Service>
GetRPCClientInterface: Service extends keyof KnownRPCServices
? ExtractInterface<OmitRPCContextArgs<KnownRPCServices[Service]>>
: Service extends object ? ExtractInterface<Service> : never
? ExtractInterface<OmitRPCContextArgs<KnownRPCServices[Service]>>
: Service extends object ? ExtractInterface<Service> : never
Type Parameters
- Service extends keyof KnownRPCServices | object
either the
module:servicename or the interface to implement. If you want to pass the implementation's type you should wrap it intoOmitRPCContextArgs.
Get the client interface type as would be returned by createClient