UNPKG

covertable

Version:

A flexible pairwise tool written in TypeScript

18 lines (17 loc) 1.09 kB
export { hex as md5 } from 'js-md5'; import type { FactorsType, ScalarType, ParentsType, CandidateType, PairType, DictType } from './types'; export declare const range: (start: number, stop: number, step?: number) => number[]; export declare const all: (values: any[]) => boolean; export declare const zip: (...lists: [...any[]]) => [...any[]]; export declare const combinations: <T>(list: T[], length: number) => T[][]; export declare const product: <T extends unknown>(...list: T[][]) => T[][]; export declare const copy: (obj: any[] | object) => {}; export declare const len: (obj: any[] | object) => number; export declare const getItems: (container: FactorsType | Map<ScalarType, any[]>) => [ScalarType, any[]][]; export declare const getCandidate: (pair: number[], parents: ParentsType) => CandidateType; export declare const ascOrder: (a: number, b: number) => 1 | -1; export declare const unique: (pair: PairType) => ScalarType; export declare function primeGenerator(): Generator<number>; export declare const proxyHandler: { get(obj: DictType, key: string, receiver: any): any; };