polkadot-js/api

View on GitHub
packages/typegen/src/templates/interfaceRegistry.hbs

Summary

Maintainability
Test Coverage
{{> header }}

// import type lookup before we augment - in some environments
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';

{{{ importsAll }}}

declare module '@polkadot/types/types/registry' {
  interface InterfaceTypes {
    {{#each items}}
    {{{this}}}: {{{this}}};
    {{/each}}
  } // InterfaceTypes
} // declare module