Adjust augmentation interface consistency (#4269)

* Adjust augmetation interface consistency

* spelling

* Remove useless eslint slience

* slience escapes

* rebuild

* Fix indent

* comment fix (again)

* Adjust

* Additional adjustments
This commit is contained in:
Jaco
2021-11-29 17:41:23 +02:00
committed by GitHub
parent b363833a9f
commit feae323f5c
93 changed files with 337 additions and 349 deletions
+1 -12
View File
@@ -1,15 +1,4 @@
// Copyright 2017-2021 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0
// FIXME, this whole file needs to move to API
import type { Observable } from 'rxjs';
import type { AnyFunction, DefinitionRpc } from '@polkadot/types/types';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface RpcInterface {}
export type AugmentedRpc<F extends AnyFunction> = F & {
raw: <T> (...params: Parameters<F>) => Observable<T>;
meta: DefinitionRpc;
};
export const __PHANTOM_RPC = 'phantom-rpc';
+1 -1
View File
@@ -4,7 +4,7 @@
import type { Observable } from 'rxjs';
import type { Codec, DefinitionRpc } from '@polkadot/types/types';
export * from './types.jsonrpc';
export * from '@polkadot/rpc-core/types.jsonrpc';
export interface RpcInterfaceMethod {
<T extends Codec> (...params: unknown[]): Observable<T>;