You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making use of this package in a TypeScript project, inside of a WebWorker. At import, the GLPK type does not indicate it's a promise, nor does the result of glpk.solve, so at the moment I am typecasting to unknown and then the Promise<> type. Could you fix this?
The text was updated successfully, but these errors were encountered:
Would you like to propose a change or file a PR? I do not have a browser ts project where I import glpk.js. Also I am not sure if there should be an index.d.ts file and then how to share types with glpk.d.ts...
Would you like to propose a change or file a PR? I do not have a browser ts project where I import glpk.js. Also I am not sure if there should be an index.d.ts file and then how to share types with glpk.d.ts...
Encountering this issue as well:
I am not sure how / why would browser promisify it while node.js doesn't, but if possible, maybe split the constructing part to either promisifying or not? So for example:
Making use of this package in a TypeScript project, inside of a WebWorker. At import, the
GLPK
type does not indicate it's a promise, nor does the result ofglpk.solve
, so at the moment I am typecasting to unknown and then thePromise<>
type. Could you fix this?The text was updated successfully, but these errors were encountered: