Align augmentation with an import-first approach (#5032)

This commit is contained in:
Jaco
2022-07-05 13:10:29 +03:00
committed by GitHub
parent 63182552a3
commit d953e101ff
39 changed files with 82 additions and 4 deletions
+2
View File
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/calls';
{{{ importsAll }}}
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/consts';
{{{ importsAll }}}
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/errors';
{{{ importsAll }}}
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/events';
{{{ importsAll }}}
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/types/types/registry';
{{{ importsAll }}}
declare module '@polkadot/types/types/registry' {
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/types/lookup';
{{{ importsAll }}}
declare module '@polkadot/types/lookup' {
+2
View File
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/storage';
{{{ importsAll }}}
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
+2
View File
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/rpc-core/types/jsonrpc';
{{{ importsAll }}}
declare module '@polkadot/rpc-core/types/jsonrpc' {
+2
View File
@@ -1,5 +1,7 @@
{{> header }}
import '@polkadot/api-base/types/submittable';
{{{ importsAll }}}
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;