longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
7 lines • 394 B
TypeScript
/**
* Returns the candidate closest to `input` by edit distance, but only when it's plausibly a
* typo — within 3 edits or half the input's length, whichever is larger. Returns undefined
* rather than a misleading suggestion for wildly different names.
*/
export declare function closestMatch(input: string, candidates: string[]): string | undefined;
//# sourceMappingURL=suggest.d.ts.map