Debian Codegraph @

types-compute-lcm/README.md

raw
1 # Installation
2 > `npm install --save @types/compute-lcm`
3
4 # Summary
5 This package contains type definitions for compute-lcm (https://github.com/compute-io/lcm#readme).
6
7 # Details
8 Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compute-lcm.
9 ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compute-lcm/index.d.ts)
10 ````ts
11 // Type definitions for compute-lcm 1.1
12 // Project: https://github.com/compute-io/lcm#readme
13 // Definitions by: James Holman <https://github.com/jayy-lmao>
14 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16 type Accessor<T> = (item: T, idx: number) => number | null;
17
18 declare function lcm(a: number, b: number): number | null;
19 declare function lcm(a: ReadonlyArray<number>): number | null;
20 // Function to extract number from an element from the data array
21 declare function lcm<T>(dataArr: ReadonlyArray<T>, a: Accessor<T>): number | null;
22
23 // Original package uses module.exports
24 export = lcm;
25
26 ````
27
28 ### Additional Details
29 * Last updated: Sat, 25 Sep 2021 01:01:25 GMT
30 * Dependencies: none
31 * Global values: none
32
33 # Credits
34 These definitions were written by [James Holman](https://github.com/jayy-lmao).