Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

TypeScript

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

What is the basic rule for TypeScript's structural type system?

Autor: Kate W



Respuesta:

X is compatible with y if y has at least the same members as x. interface Pet { name: string; } let pet: Pet; // dog's inferred type is { name: string; owner: string; } let dog = { name: "Lassie", owner: "Rudd Weatherwax" }; pet = dog;


0 / 5  (0 calificaciones)

1 answer(s) in total

Autor

Kate W
Kate W