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
Is there a possible way to implement the type definition of gopherjs-libra to work with typescript?
I see such .d.ts generator dts-gen from microsoft can help to generate d.ts file from node or js library.
There is the generated d.ts file from gopherjs-libra.js.
It will be great to have gopherjs-libra work with typescript. I have little experience with js and even less with ts. To be honest I had spent several days to figure out how to make gopherjs transpiled code to work with both browsers and nodejs.
You can rebuild the js file using gopherjs without -m option, so that it will not be minimized. I guess this will help you figure out how gopherjs organize the output js code.
It will be great to have gopherjs-libra work with typescript. I have little experience with js and even less with ts. To be honest I had spent several days to figure out how to make gopherjs transpiled code to work with both browsers and nodejs.
You can rebuild the js file using gopherjs without -m option, so that it will not be minimized. I guess this will help you figure out how gopherjs organize the output js code.
Good luck!
It compatible with vue.js but react or react-js...
Is there a possible way to implement the type definition of gopherjs-libra to work with typescript?
I see such
.d.ts
generatordts-gen
from microsoft can help to generate d.ts file from node or js library.There is the generated d.ts file from gopherjs-libra.js.
However, the origin javascript file need to be a module (translate to ts file) or exported. I'm trying to implement that at this time.
The text was updated successfully, but these errors were encountered: