Type Alias InferWsApiRequestHandlerTypeFromApi<ApiT, CommandNameT, ExtraArgsT>

InferWsApiRequestHandlerTypeFromApi<ApiT, CommandNameT, ExtraArgsT>: ApiT extends WsApi<infer RequestCommandsT, infer ResponseCommandsT, infer QueryT>
    ? CommandNameT extends keyof RequestCommandsT & string
        ? WsApiRequestHandler<RequestCommandsT, ResponseCommandsT, CommandNameT, QueryT, ExtraArgsT>
        : never
    : never

Type Parameters

  • ApiT
  • CommandNameT
  • ExtraArgsT extends Record<string, any> = Record<string, never>