I see you're already using JSdoc for the types, but might be nice to just through in a .d.ts file for convenience.
Here's my shim:
declare module "trigram-similarity" {
const trigramSimilarity: (input1: string, input2: string) => number;
export default trigramSimilarity;
}
I see you're already using JSdoc for the types, but might be nice to just through in a
.d.tsfile for convenience.Here's my shim: