npm.io
1.0.3 • Published 2 years ago

@types/minimal-bit-array

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/minimal-bit-array

Summary

This package contains type definitions for minimal-bit-array (https://github.com/mikolalysenko/minimal-bit-array).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minimal-bit-array.

index.d.ts

declare namespace BitArray {
    interface BitArrayJSON {
        bits: number[];
        length: number;
    }
}

declare class BitArray {
    static fromJSON(bitArrayJSON: BitArray.BitArrayJSON): BitArray;

    length: number;
    bits: Uint32Array;

    constructor(length: number);

    get(index: number): boolean;
    set(index: number, value: any): boolean;
    toJSON(): BitArray.BitArrayJSON;
}

export = BitArray;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Olegs Jeremejevs.