Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miss typedef for CameraControls/MapControls/OrbitControls #520

Open
5 tasks done
0x-jerry opened this issue Nov 8, 2024 · 0 comments
Open
5 tasks done

Miss typedef for CameraControls/MapControls/OrbitControls #520

0x-jerry opened this issue Nov 8, 2024 · 0 comments

Comments

@0x-jerry
Copy link

0x-jerry commented Nov 8, 2024

Describe the bug

I am import OrbitControls by using TypeScript, but the typedef of OrbitControls is any

import { OrbitControls } from '@tresjs/cientos'

type ComponentInstance = InstanceType<typeof OrbitControls>
type ControlsInstance = ComponentInstance['instance']
//   ^? This is any

I found the build source doesn't include the file OrbitControls.vue.d.ts.

image

Reproduction

https://stackblitz.com/edit/tresjs-basic-grkvtv?file=package.json,src%2Fmain.ts

Steps to reproduce

Open main.ts, then check ControlsInstance's typedef.

System Info

@tresjs/cientos is v4.0.3

Used Package Manager

pnpm

Code of Conduct

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

No branches or pull requests

1 participant