Replies: 3 comments 2 replies
-
it doesn't, how would this work? |
Beta Was this translation helpful? Give feedback.
-
d.ts files are ways to provide intellisense for better develop experience when importing npm packages. As cherry emits ES6 javascript, typescript consumers would need d.ts files to import it into their own projects. the typescript compiler can generate d.ts files as an option. it resembles .h files in c projects in a way. Would be a nice feature, in my opinion https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html, a reference |
Beta Was this translation helpful? Give feedback.
-
clojure doesn't have a type system, I don't know what you expect cherry to do exactly. can you give some concrete examples? Recently somebody mentioned that you can insert JSDoc comments in regular .js files and that some babel plugin can pick up on this. Would this what you mean? I'm converting this to a discussion, since it's pretty vague still what we're talking about here. |
Beta Was this translation helpful? Give feedback.
-
hey, just curious, does the cherry compiler have d.ts file generation?
wondering if it would be worth implementing, or the user would be better off writing d.ts files themselves
Beta Was this translation helpful? Give feedback.
All reactions