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 definitions #117

Open
t1u1 opened this issue Jul 15, 2024 · 1 comment
Open

Typescript definitions #117

t1u1 opened this issue Jul 15, 2024 · 1 comment

Comments

@t1u1
Copy link

t1u1 commented Jul 15, 2024

Hi and thanks for making this library!

Would be great if the library provided typescript definitions for the API.

@t1u1
Copy link
Author

t1u1 commented Jul 15, 2024

Here's the simplest $types.d.ts that I came up with:

declare module 'mathup' {
  export function mathup(input: string, options: {});

  export default mathup;
}

and it works for my case, but it should probably be expanded more.

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