Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Nim
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
That's an interesting idea. In principle I think you could generate a TypeScript type definitions file like https://github.com/DefinitelyTyped/DefinitelyTyped, but that would probably require some work to do with a macro.
Might want to look at how the jsExport macro in https://github.com/nepeckman/jsExport.nim works, or at https://github.com/mcclure/dts2nim (which works the other way, generating nim type definitions given a typescript definitions file).
Might want to look at how the jsExport macro in https://github.com/nepeckman/jsExport.nim works, or at https://github.com/mcclure/dts2nim (which works the other way, generating nim type definitions given a typescript definitions file).
You might be looking for sourcemaps? https://github.com/nim-lang/Nim/pull/7508