Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

24
backend/node_modules/mnemonist/bk-tree.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
/**
* 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>;
}