Align augmentation with an import-first approach (#5032)
This commit is contained in:
@@ -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' {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{{> header }}
|
||||
|
||||
import '@polkadot/api-base/types/storage';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{{> header }}
|
||||
|
||||
import '@polkadot/rpc-core/types/jsonrpc';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{{> header }}
|
||||
|
||||
import '@polkadot/api-base/types/submittable';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
|
||||
Reference in New Issue
Block a user