Spaces:
Running
Running
File size: 1,090 Bytes
78c921d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import { Data } from '../data.js';
import { Vector } from '../vector.js';
import { DataType, Struct } from '../type.js';
/** @ignore */ export declare const kKeys: unique symbol;
/** @ignore */ export declare const kVals: unique symbol;
export declare class MapRow<K extends DataType = any, V extends DataType = any> {
[key: string]: V['TValue'];
private [kKeys];
private [kVals];
constructor(slice: Data<Struct<{
key: K;
value: V;
}>>);
[Symbol.iterator](): MapRowIterator<K, V>;
get size(): number;
toArray(): unknown[];
toJSON(): { [P in K["TValue"]]: V["TValue"]; };
toString(): string;
}
declare class MapRowIterator<K extends DataType = any, V extends DataType = any> implements IterableIterator<[K['TValue'], V['TValue'] | null]> {
private keys;
private vals;
private numKeys;
private keyIndex;
constructor(keys: Vector<K>, vals: Data<V>);
[Symbol.iterator](): this;
next(): IteratorReturnResult<null> | {
done: boolean;
value: [K["TValue"], V["TValue"] | null];
};
}
export {};
|