ghost-portal/packages/apps-config/src/api/index.ts
Jaco Greeff f84a55089b
Convert all specs to type bundles (#4646)
* Convert all specs to type bundles

* Additional

* s.specVersioned/spec/

* Fix paraApi typesSpec import

* Update

* small update

* comment on mapping
2021-02-11 11:54:27 +01:00

21 lines
577 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleType } from '@polkadot/types/types';
import typesChain from './chain';
import spec from './spec';
export * from './constants';
export * from './params';
export function getChainTypes (_specName: string, chainName: string): Record<string, string | Record<string, unknown>> {
return {
...(typesChain[chainName as keyof typeof typesChain] || {})
};
}
export const typesBundle: OverrideBundleType = { spec };
export { typesChain };