Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript def #2

Open
vincerubinetti opened this issue Jul 19, 2023 · 0 comments
Open

Typescript def #2

vincerubinetti opened this issue Jul 19, 2023 · 0 comments

Comments

@vincerubinetti
Copy link

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant