Skip to content

Suggestion Backlog Slog, 8/30/2021 #45648

Closed
@andrewbranch

Description

@andrewbranch
  • 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.
    • Action: leave issue open, remove from project board, update status on issue
  • 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 get unknown
    • 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

Metadata

Metadata

Assignees

Labels

Design NotesNotes from our design meetings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @andrewbranch

      Issue actions

        Suggestion Backlog Slog, 8/30/2021 · Issue #45648 · microsoft/TypeScript