File: README.md

package info (click to toggle)
node-json-schema-merge-allof 0.8.1%2B~cs9.16.23-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,036 kB
  • sloc: javascript: 6,293; makefile: 176
file content (34 lines) | stat: -rwxr-xr-x 1,246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compute-lcm/index.d.ts)
````ts
// Type definitions for compute-lcm 1.1
// Project: https://github.com/compute-io/lcm#readme
// Definitions by: James Holman <https://github.com/jayy-lmao>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

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

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

````

### Additional Details
 * Last updated: Sat, 25 Sep 2021 01:01:25 GMT
 * Dependencies: none
 * Global values: none

# Credits
These definitions were written by [James Holman](https://github.com/jayy-lmao).