Closed
Description
- Feature Request: allow exclusion of node_modules when skipLibCheck is false #30511
- shouldn't you just make your hand-authored .d.ts files .ts files?
- Yes, probably. We currently have a fairly coherent posture that .d.ts files are not inputs—they don't get copied to
outDir
of a compilation. We probably wouldn’t change the .d.ts checking behavior without more broadly rethinking this position.
- Yes, probably. We currently have a fairly coherent posture that .d.ts files are not inputs—they don't get copied to
- Action: leave issue open, remove from project board, update status on issue
- shouldn't you just make your hand-authored .d.ts files .ts files?
- Use generic defaults for "empty" constructors of Array, Map, Set #29786
- reason was to not be allowed to write
Map<string>
- wait, is that really that bad? Looks unexpected if you're not familiar with the type definition or coming from another language and assume Map keys are always stringy.
- could we have two overloads, one with two mandatory type params?
- no, because we couldn't get the default
<any, any>
, you getunknown
- no, because we couldn't get the default
- would this matter if we were ever allowed to have strict libs with
unknown
?- that might help a little
- we traded one problem for another, maybe let's not undo it again
- sometimes when you do subtype reduction you want to get rid of the
any
if there's something more informed to use - Action: close issue/PR, not worth the flip flopping with potential breaks
- reason was to not be allowed to write
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity