UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

24 lines (19 loc) 541 B
/** * Mnemonist BKTree Typings * ========================= */ type DistanceFunction<T> = (a: T, b: T) => number; export default class BKTree<T> { // Members distance: DistanceFunction<T>; size: number; // Constructor constructor(distance: DistanceFunction<T>); // Methods add(item: T): this; search(n: number, query: T): Array<{item: T, distance: number}>; toJSON(): object; inspect(): any; // Statics static from<I>(iterable: Iterable<I> | {[key: string] : I}, distance: DistanceFunction<I>): BKTree<I>; }