-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I don't think this is going to happen but I wanted a place to collect the benefits and blockers.
What is the Problem Being Solved?
We rely on TypeScript for Intellisense, refactoring support, and fast feedback on what will fail in tests. We use the JSDoc syntax in .js and not .ts syntax.
Kinks
- No way to opt out of typedef exports (Support for opting out of jsdoc @typedef exports microsoft/TypeScript#46011)
- Inline casts require wrapping the casted value in
()which build tools remove as superfluous (example) - No way to deprecate types (the
@deprecatedtag works only in .ts + jsdoc and not with plain JS.
Challenges
- Transpilation affects auditability
- Build step complicates execution
Description of the Design
Probably some form of Node module loader hook, such as https://github.com/esbuild-kit/esm-loader
Or a Node wrapping runtime: https://github.com/privatenumber/ts-runtime-comparison
There will be transpilation but audits should be of built bundles, which aren't minified.
Security Considerations
Test Plan
kungfooman0xpatrickdev
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request