microsoft / microsoft/TypeScript
Spread with enum index key, invalid members don't trigger errors
@ahejlsberg ya está trabajando en esto.
Desde el 3/7/2019.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.3k
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 132
Descripción
TypeScript Version: 3.5.1
Search Terms:
object spread enum index missing keys
Expected behavior:
Missing keys & incorrect value types when I build a nested object using the spread operator with index keys, ought to throw errors for invalid types
Actual behavior:
It seems like the child object can have whatever shape I want, the types aren't being checked at all
Playground Link: This is same as above playground link
Related Issues: I'm not really sure what the root limitation that's causing this is so it's hard for me to find similar issues.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.