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
When using // @preval at the top of the file, it's first evaluated in Node.js. This means that TypeScript has no idea what's going on. If I leave these files as vanilla JS (.js) it's okay (the import gets an any type in TS), but then we don't get the advantages of TypeScript.
Can I write preval files themselves in TypeScript? Maybe with ts-node?
The text was updated successfully, but these errors were encountered:
It might be possible to support processing of preval snippets with ts, but I think having the resulting types pass through to other code trying to use the output would be quite difficult, if not impossible.
When using
// @preval
at the top of the file, it's first evaluated in Node.js. This means that TypeScript has no idea what's going on. If I leave these files as vanilla JS (.js
) it's okay (the import gets anany
type in TS), but then we don't get the advantages of TypeScript.Can I write preval files themselves in TypeScript? Maybe with ts-node?
The text was updated successfully, but these errors were encountered: