microsoft / microsoft/TypeScript
Docs: Advanced Types section "Interfaces vs. Type Aliases" is contradictory
@DanielRosenwasser ya está trabajando en esto.
Desde el 12/12/2018.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.4k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 117
Descripción
TypeScript Version: N/A
Search Terms:
label: Docs "Advanced Types" "Interfaces vs Type Aliases"
I've been trying to understand the differences between interfaces and type aliases, and I've found contradictory information on the "Advanced Types" page of the docs. The "Type Aliases" section begins with "Type aliases create a new name for a type." Just a few paragraphs later though in the "Interfaces vs. Type Aliases" subsection, it says: "Type aliases don’t create a new name". (Emphasis is mine). See also this blog post, which enumerates some other aspects of this section that would benefit from clarification/update.
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.