0
What is the difference between the declaration of the properties of the two interfaces?
interface Modelo {
propriedade: InterfaceA[]; <= desta forma
}
and in this way:
interface Modelo {
propriedade: InterfaceA; <= desta forma
}
0
What is the difference between the declaration of the properties of the two interfaces?
interface Modelo {
propriedade: InterfaceA[]; <= desta forma
}
and in this way:
interface Modelo {
propriedade: InterfaceA; <= desta forma
}
Browser other questions tagged javascript typescript interface
You are not signed in. Login or sign up in order to post.
InterfaceA[]
indicates that it is an array ofInterfaceA
: https://www.typescriptlang.org/docs/handbook/basic-types.html#array– hkotsubo