acl-services / acl-services/paprika
ListBox: typings don't work for ListBox.types
- Linguagem predominante
- JavaScript
- Estrelas
- 54
- Forks
- 10
- Merge médio
- 1d 12h
- PRs com merge (30d)
- 6
Descrição
# Bug Report
## Expected behavior
I want to be able to refer to `ListBox.types` in TypeScript code.
## Current behavior
I'm getting a tsc error
```
Property 'types' does not exist on type 'typeof ListBox'. ts(2339)
```
## Screenshots / Gifs / Codepens

## Additional context
It starts working when I rename this to `ListBox`:
https://github.com/acl-services/paprika/blob/992fb921d680b4ddcd028f867791df0cf334cca1/packages/ListBox/src/index.d.ts#L190
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Open `packages/ListBox/src/index.d.ts` at the linked area (`.../index.d.ts#L190`) and inspect how `ListBox` is typed, especially static members on `typeof ListBox`. Confirm whether `types` is missing from that declaration compared with the runtime API. Then run the package’s TypeScript type check/build (`tsc` or equivalent) and verify the consumer error `Property 'types' does not exist on type 'typeof ListBox'` is gone.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- react, typescript
- Domínio
- frontend
- Tipo de issue
- Bug
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 55/100