File: index.d.ts

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 (14 lines) | stat: -rwxr-xr-x 612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;