-
Notifications
You must be signed in to change notification settings - Fork 20
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
Using GLPK() in TypeScript results in 'This expression is not callable' #37
Comments
domdomegg
added a commit
to domdomegg/glpk.js
that referenced
this issue
Jan 10, 2023
Hello @domdomegg, I admit my treatment of TS is quite stepmotherly ... If the fix in the PR works for you (I guess it does now?) then I am just going to merge it. Thank you |
Hi Jan, Yes, the fix in my PR works for me. Adam |
Could you please release this fix to npm? |
Yes, good idea. I'll try to get it done over the weekend. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code in TypeScript
Throws a compliation error:
However, based on the documentation this seems like the correct way to initialise the library. Using
// @ts-ignore
, the library seems to work correctly. So I think this is an issue with the typings indist/glpk.d.ts
.Specifically I'm using versions:
But think it applies on any modern version of TypeScript.
The text was updated successfully, but these errors were encountered: