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.