DEV Community

Discussion on: Introduction to typescript with React

kernelsoe profile image
Kernel Soe

Thanks for this awesome guide!

I would like ask one quick question => is the same as declaring Array<TypeName> vs TypeName[] in an interface?

towaanu profile image
Antoine Muller Author

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.

You can find more about it in the official documentation :