microsoft / microsoft/TypeScript
Unable to destructure TypedArrays
Offen
@rbuckton arbeitet bereits daran.
Seit 30.1.2018.
Committed
Suggestion
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.