ghost-portal/packages/apps-config/src/api/index.ts
2020-09-17 16:46:46 +02:00

18 lines
454 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import typesChain from './chain';
import typesSpec from './spec';
export function getChainTypes (specName: string, chainName: string): Record<string, string | Record<string, unknown>> {
return {
...(typesSpec[specName as 'edgeware'] || {}),
...(typesChain[chainName as 'Beresheet'] || {})
};
}
export {
typesChain,
typesSpec
};