Augment NMap entries (#3556)

* Augment NMap entries

* CHANGELOG

* DropLast generic helper

* Keys checkType

* Signular argument

* Adjust augmentation

* Adjust

* restore key types

* NMap iterKey

* NMap keys/entries

* Adjust creation

* Simplify

* Update

* CHANGELOG
This commit is contained in:
Jaco
2021-05-23 17:00:58 +02:00
committed by GitHub
parent babef6d7bc
commit 6ed90c6111
18 changed files with 754 additions and 298 deletions
+3 -3
View File
@@ -5,9 +5,9 @@ import type { StorageEntryMetadataLatest } from '../interfaces/metadata';
import type { Codec } from '../types';
export interface StorageEntry {
(arg?: any): Uint8Array;
iterKey?: (arg?: any) => Uint8Array & Codec;
keyPrefix: (arg?: any) => Uint8Array;
(arg?: unknown): Uint8Array;
iterKey?: (...args: unknown[]) => Uint8Array & Codec;
keyPrefix: (...args: unknown[]) => Uint8Array;
meta: StorageEntryMetadataLatest;
method: string;
prefix: string;