Closed Stadly closed 1 month ago
When doing
import { Select } from 'bits-ui'; type Props = Select.ContentProps;
Props is typed as any!
Props
any
If you open the StackBlitz and hover Props, it is shown as any
And just below, a variable typed as Props is set to the value 5. This should not be possible if the type of Props was correct.
5
You can run npm run lint to see the errors.
npm run lint
Related issues: https://github.com/huntabyte/bits-ui/issues/376 https://github.com/huntabyte/bits-ui/issues/512
https://stackblitz.com/edit/github-gn5sax-8qtxtf?file=src%2Flib%2Findex.ts
No response
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.18.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: @sveltejs/kit: ^2.0.0 => 2.5.8 bits-ui: latest => 0.21.7 svelte: ^4.2.7 => 4.2.17
annoyance
Describe the bug
When doing
Props
is typed asany
!If you open the StackBlitz and hover
Props
, it is shown asany
And just below, a variable typed as
Props
is set to the value5
. This should not be possible if the type ofProps
was correct.You can run
npm run lint
to see the errors.Related issues: https://github.com/huntabyte/bits-ui/issues/376 https://github.com/huntabyte/bits-ui/issues/512
Reproduction
https://stackblitz.com/edit/github-gn5sax-8qtxtf?file=src%2Flib%2Findex.ts
Logs
No response
System Info
Severity
annoyance