Move types/codec/create -> types/create (#1871)
* Move types/codec/create -> types/create * Update imports after move * Cleanups * Cleanup code circular deps * Re-add dropped interfaces * Drop duplicated code * Fix imports * Remove whacky comment
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
|
||||
import { Codec, Registry, TypeDefInfo, TypeDef } from '@polkadot/types/types';
|
||||
|
||||
import { Option, Raw, createClass } from '@polkadot/types';
|
||||
import { createTypeUnsafe } from '@polkadot/types/codec';
|
||||
import { Option, Raw, createClass, createTypeUnsafe } from '@polkadot/types';
|
||||
|
||||
export function formatData (registry: Registry, data: Raw, { info, type }: TypeDef): Codec {
|
||||
if (info === TypeDefInfo.Option) {
|
||||
|
||||
Reference in New Issue
Block a user