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

1.0.0 • Public • Published

Installation

npm install --save @types/big-sparse-array

Summary

This package contains type definitions for big-sparse-array (https://github.com/mafintosh/big-sparse-array).

Details

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

index.d.ts

declare class BigSparseArray<T> {
    /**
     * Insert a new value at an index. `index` must be a integer.
     */
    set(index: number, value: T): T;

    /**
     * Get a value out. Returns `undefined` if the value could not be found.
     */
    get(index: number): undefined | T;
}

export = BigSparseArray;

Additional Details

  • Last updated: Sat, 03 Feb 2024 21:35:14 GMT
  • Dependencies: none

Credits

These definitions were written by Evan Hahn.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/big-sparse-array

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

3.22 kB

Total Files

5

Last publish

Collaborators

  • types