Comparing version 0.0.16 to 0.0.17
@@ -1,2 +0,2 @@ | ||
export declare type RpcClientImpl<TReqMetadata = any, TResMetadata = any> = <TReq, TRes>(methodDescriptor: MethodDescriptor<TReq, TRes>) => (req: AsyncGenerator<TReq>, metadata?: TReqMetadata) => [AsyncGenerator<TRes>, Promise<TResMetadata>]; | ||
export declare type RpcClientImpl<TMetadata = any, THeader = any, TTrailer = any> = <TReq, TRes>(methodDescriptor: MethodDescriptor<TReq, TRes>) => (req: AsyncGenerator<TReq>, metadata?: TMetadata) => [AsyncGenerator<TRes>, Promise<THeader>, Promise<TTrailer>]; | ||
export interface MethodDescriptor<TReq, TRes> { | ||
@@ -18,4 +18,6 @@ methodName: string; | ||
} | ||
export declare type RpcReturnType<TRes, TResArgs extends any[]> = (TResArgs extends [] ? TRes : [TRes, ...TResArgs]); | ||
declare type ThenArg<T> = T extends Promise<infer U> ? U : T; | ||
export declare type RpcReturnType<TRes, TResArgs extends any[]> = (Promise<TResArgs extends [] ? ThenArg<TRes> : [ThenArg<TRes>, ...TResArgs]>); | ||
export declare function singleValueToAsyncGenerator<T>(value: T): AsyncGenerator<T>; | ||
export declare function getFirstValueFromAsyncGenerator<T>(generator: AsyncGenerator<T>): Promise<T>; | ||
export {}; |
{ | ||
"name": "pbkit", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"author": "JongChan Choi <jong@chan.moe>", | ||
@@ -5,0 +5,0 @@ "license": "(MIT OR Apache-2.0)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128451
3764