microsoft / microsoft/TypeScript
Unable to destructure TypedArrays
Aperta
@rbuckton ci sta già lavorando.
Dal 30/1/2018.
Committed
Suggestion
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
TypeScript Version: 2.6.2
Code
const [ foo, bar ] = new Float64Array([42, -42])
Expected behavior:
foo and bar are destructured correctly
All JS engine with support for TypedArrays and destructuring handles this code without any problem
Actual behavior:
Error: error TS2461: Type 'Float64Array' is not an array type.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.