UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

30 lines 1.14 kB
export type PropertyExtendedKey = PropertyKey | bigint; /** * Like Record, but supports bigint keys (which JS auto-converts to strings). * Reflects actual JavaScript behavior where obj[123n] becomes obj["123"]. */ export type FastRecord<V> = { [key: string]: V; }; export type IndexKey = string | number; export declare class FastMap<K extends PropertyExtendedKey, V> implements Disposable { protected _keys: K[]; protected _values: FastRecord<V>; constructor(iterable?: ReadonlyArray<readonly [K, V]> | null | FastMap<K, V>); get size(): number; setAll(map: FastMap<K, V>): void; addAll(map: FastMap<K, V>): void; keys(): IterableIterator<K>; values(): IterableIterator<V>; entries(): IterableIterator<[K, V]>; set(key: K, value: V): this; indexOf(key: K): number; get(key: K): V | undefined; has(key: K): boolean; delete(key: K): boolean; clear(): void; [Symbol.dispose](): void; forEach(callback: (value: V, key: K, map: FastMap<K, V>) => void, thisArg?: unknown): void; [Symbol.iterator](): IterableIterator<[K, V]>; } //# sourceMappingURL=FastMap.d.ts.map