Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Name of potential 'type' option might be confusing for 'types' package.json field #294

@DanielRosenwasser

Description

@DanielRosenwasser

Something I realized with type potentially being a field in package.json is that it might be slightly confusing for TypeScript users.

When TypeScript tries to import a package, much like Node.js looks to resolve a .js file from a main field, TypeScript will try to resolve a .d.ts file from the types field. Do we have any concerns here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions