You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
405 B
5 lines
405 B
interface RpcProcedure<TPayload = unknown, TResult = unknown> extends String { |
|
} |
|
declare type RpcProcedurePayload<TProcedure> = TProcedure extends RpcProcedure<infer TPayload, infer TResult> ? TPayload : never; |
|
declare type RpcProcedureResult<TProcedure> = TProcedure extends RpcProcedure<infer TPayload, infer TResult> ? TResult : never; |
|
export { RpcProcedure, RpcProcedurePayload, RpcProcedureResult };
|
|
|