Skip to content

docs: add typescript template and guide for npm usage - #381

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:ts-template
Jun 16, 2026
Merged

docs: add typescript template and guide for npm usage#381
dli7319 merged 1 commit into
google:mainfrom
dli7319:ts-template

Conversation

@dli7319

@dli7319 dli7319 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator
  • Expanded Intro.mdx with instructions on installing via npm and handling optional dependencies.
  • Added a new templates/typescript starter template using Vite, skipLibCheck: true, and proper dispose() cleanup with TypeScript override keywords.
  • Implemented dispose() method in templates/0_basic for cleaning up geometries and materials.
  • Documented dispose() lifecycle method in docs/docs/manual/Scripts.md.

Fixes #374

- Expanded Intro.mdx with instructions on installing via npm and handling optional dependencies.
- Added a new templates/typescript starter template using Vite, skipLibCheck: true, and proper dispose() cleanup with TypeScript override keywords.
- Implemented dispose() method in templates/0_basic for cleaning up geometries and materials.
- Documented dispose() lifecycle method in docs/docs/manual/Scripts.md.
@dli7319
dli7319 requested a review from ruofeidu June 16, 2026 17:29
@dli7319
dli7319 merged commit 63110c9 into google:main Jun 16, 2026
8 checks passed
@dli7319
dli7319 deleted the ts-template branch June 17, 2026 03:54
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.

Various issues with npm packages and official demos

2 participants