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
By leveraging on the existing mechanisms in the compiler, produce a d.ts file when the header flag is used. This file will be a header containing all the definitions exported in the Nim code. Just like the existing header works for the C/C++ backends.
Motivation
No response
Description
The main motivation is to improve the ergonomics of js/ts interop by providing type information that IDEs can use.
Would love to see this. I've got a large TS project and being able to write nim and have it "just work" without having to manually declare types would be amazing.
Abstract
By leveraging on the existing mechanisms in the compiler, produce a
d.ts
file when theheader
flag is used. This file will be a header containing all the definitions exported in the Nim code. Just like the existingheader
works for the C/C++ backends.Motivation
No response
Description
The main motivation is to improve the ergonomics of
js/ts
interop by providing type information that IDEs can use.Code Examples
Would produce:
Backwards Compatibility
No response
The text was updated successfully, but these errors were encountered: