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

1.1.3 • Public • Published

Installation

npm install --save @types/compute-lcm

Summary

This package contains type definitions for compute-lcm (https://github.com/compute-io/lcm#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compute-lcm.

index.d.ts

type Accessor<T> = (item: T, idx: number) => number | null;

declare function lcm(a: number, b: number): number | null;
declare function lcm(a: readonly number[]): number | null;
// Function to extract number from an element from the data array
declare function lcm<T>(dataArr: readonly T[], a: Accessor<T>): number | null;

//  Original package uses module.exports
export = lcm;

Additional Details

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

Credits

These definitions were written by James Holman.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/compute-lcm

Weekly Downloads

574

Version

1.1.3

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types