Usage comments around rpc and call interfaces (#5327)

* Usage comments around rpc and call interfaces

* Optional pubsub

* s/method/subname/
This commit is contained in:
Jaco
2022-11-11 09:14:00 +02:00
committed by GitHub
parent 3525070d92
commit 8dd13e181a
2 changed files with 37 additions and 4 deletions
+4 -2
View File
@@ -11,8 +11,10 @@ export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction =
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
DecoratedCallBase<ApiType, F> & { meta: DefinitionCallNamed };
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
/** The metadata/description/definition for this method */
meta: DefinitionCallNamed
};
// augmented interfaces