Thanks for this awesome guide!
I would like ask one quick question => is the same as declaring Array<TypeName> vs TypeName[] in an interface?
Array<TypeName>
TypeName[]
Hi, happy you enjoyed the guide :) !
Yes Array<T> and T[] means the same thing. For example Array<number> or number[] means an array of number in typescript.
Array<T>
T[]
Array<number>
number[]
You can find more about it in the official documentation : typescriptlang.org/docs/handbook/2...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this awesome guide!
I would like ask one quick question => is the same as declaring
Array<TypeName>
vsTypeName[]
in an interface?Hi, happy you enjoyed the guide :) !
Yes
Array<T>
andT[]
means the same thing.For example
Array<number>
ornumber[]
means an array of number in typescript.You can find more about it in the official documentation : typescriptlang.org/docs/handbook/2...