GetRPCClientInterface | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias GetRPCClientInterface<Service>

    GetRPCClientInterface: Service extends keyof KnownRPCServices
        ? ExtractInterface<OmitRPCContextArgs<KnownRPCServices[Service]>>
        : Service extends object ? ExtractInterface<Service> : never

    Get the client interface type as would be returned by createClient

    Type Parameters

    • Service extends keyof KnownRPCServices | object

      either the module:service name or the interface to implement. If you want to pass the implementation's type you should wrap it into OmitRPCContextArgs.