ghost-portal/packages/apps-config/src/api/spec/zeitgeist.ts
Jaco 4bfda46580
Swap TS resolution to base config (#9194)
* Swap TS resolution to base config

* Run build fixup before lint

* Adjust with specific comment on fixup
2023-03-17 12:55:10 +02:00

32 lines
825 B
TypeScript

// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import * as typeDefs from '@zeitgeistpm/type-defs';
import { typesFromDefs } from '../util.js';
const bundle = {
alias: {
tokens: {
AccountData: 'TokensAccountData'
}
},
types: [{
minmax: [0, undefined],
types: {
// the cast here is needed to make the build happy,
// however the output is actually correct as well...
...typesFromDefs(typeDefs as unknown as Record<string, { types: Record<string, any> }>),
TokensAccountData: {
free: 'Balance',
frozen: 'Balance',
reserved: 'Balance'
}
}
}]
};
export default bundle as never as OverrideBundleDefinition;