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

2.0.3 • Public • Published

Installation

npm install --save @types/add

Summary

This package contains type definitions for add (https://github.com/ben-ng/add).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/add.

index.d.ts

declare function accSum(numbers: readonly number[]): number;

export = accSum;

declare namespace accSum {
    function dumbSum(numbers: readonly number[]): number;
    function fastTwoSum(a: number, b: number): [number, number, null];

    /**
     * Finds the immediate power of 2 that is larger than p
     * in a fast way
     */
    function nextPowerTwo(p: number): number;
}

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:23 GMT
  • Dependencies: none

Credits

These definitions were written by Tristan F..

/@types/add/

    Package Sidebar

    Install

    npm i @types/add

    Weekly Downloads

    8,386

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    3.24 kB

    Total Files

    5

    Last publish

    Collaborators

    • types