Skip to content

Commit b2e0bab

Browse files
authored
Add Iterator to the typescript definition
1 parent 72c3f59 commit b2e0bab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bitset.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export declare interface ReadOnlyBitSet
1+
export declare interface ReadOnlyBitSet
22
{
33
/**
44
* Creates the bitwise AND of two sets.
@@ -196,6 +196,11 @@
196196
* @returns {BitSet|null} A new smaller bitset object, containing the extracted range
197197
*/
198198
slice(fromIndex?: number, toIndex?: number): BitSet;
199+
200+
/**
201+
* Iterates over the set bits
202+
*/
203+
[Symbol.iterator](): Iterator<number>;
199204
}
200205
export declare var ReadOnlyBitSet: ReadOnlyBitSet;
201206

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy