Remove as unknown (#1636)
* Remove some as unknowns * Rename sanitize * Remove file
This commit is contained in:
committed by
Jaco Greeff
parent
b7ba654e48
commit
f78bf9dde1
@@ -39,7 +39,7 @@ export default function fromMetadata (registry: Registry, metadata: Metadata): S
|
||||
}, { metaVersion: metadata.version });
|
||||
|
||||
return newModule;
|
||||
}, {} as unknown as ModuleStorage);
|
||||
}, {} as ModuleStorage);
|
||||
|
||||
return result;
|
||||
}, { ...getStorage(registry, metadata.version) });
|
||||
|
||||
@@ -24,7 +24,7 @@ function createRuntimeFunction (method: string, key: string, { documentation, ty
|
||||
modifier: createType(registry, 'StorageEntryModifierLatest', 1), // required
|
||||
type: createType(registry, 'StorageEntryTypeLatest', type, 0),
|
||||
toJSON: (): any => key
|
||||
} as unknown as StorageEntryMetadataLatest,
|
||||
} as StorageEntryMetadataLatest,
|
||||
method,
|
||||
prefix: 'Substrate',
|
||||
section: 'substrate'
|
||||
|
||||
Reference in New Issue
Block a user