Skip to content

Documentation: Unclear where the x-typescript-types header points to #1243

@hybridherbst

Description

@hybridherbst

Some repositories do not have types included with them, for example three.js.
Still, esm.sh is correctly pointing at types for it coming from @types, like this:

https://esm.sh/[email protected]/examples/jsm/loaders/DRACOLoader.js
x-typescript-types: https://esm.sh/@types/three@~0.181.0/examples/jsm/loaders/DRACOLoader.d.ts

However, we have a fork of three.js, and our fork's package does not contain x-typescript-types, presumably because the name does not match within @types:

https://esm.sh/@needle-tools/three/examples/jsm/loaders/DRACOLoader.js
x-typescript-types: **NONE**

Is there a way to tell esm.sh where to find the types for our fork?

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