Adjust type generation to correctly cater for ambient definitions (#5034)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/calls';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/consts';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/consts';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/errors';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/errors';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/events';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/events';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/types/types/registry';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/types/lookup';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/storage';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/storage';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/rpc-core/types/jsonrpc';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/rpc-core/types/jsonrpc';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
||||
|
||||
declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
interface RpcInterface {
|
||||
{{#each modules}}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{{> header }}
|
||||
|
||||
// import '@polkadot/api-base/types/submittable';
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/api-base/types/submittable';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user