Skip to content

Tell TypeScript users to install @types/three - #57

Merged
aka-blackboots merged 1 commit into
mainfrom
docs/types-three-install-note
Nov 10, 2026
Merged

aka-blackboots merged 1 commit into
mainfrom
docs/types-three-install-note

Conversation

@aka-blackboots

Copy link
Copy Markdown
Contributor

Summary

The package's type files import the types of three, which three does not ship. A clean install of opengeometry@3.0.0, compiled with strict TypeScript, fails with "Could not find a declaration file for module 'three'" until @types/three is installed. With skipLibCheck the error is hidden, and the Three.js types become any.

The README's Installation section and the docs installation page now say to run npm install --save-dev @types/three in a TypeScript project, as the quickstart page already did.

The npm page shows the new README from the next publish.

Verification

  • README and dist tests: 52 pass.
  • npm run check in docs/: format, index, strict validation and links pass.

The package's type files import the types of three, which three does
not ship. A clean install of opengeometry 3.0.0 compiled with strict
TypeScript fails with "Could not find a declaration file for module
'three'" until @types/three is installed. The README and the
installation page now say so, as the quickstart page already did.
@aka-blackboots
aka-blackboots merged commit aedbab1 into main Nov 10, 2026
2 of 6 checks passed
@aka-blackboots
aka-blackboots deleted the docs/types-three-install-note branch November 10, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant