@types/minimal-bit-array
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Olegs Jeremejevs.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/minimal-bit-array

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • types