This seems like a dumb question, but here I am.
I know an interface can be used to define an object and its keys, but how do I make an interface if that object is an array?
For example, the interface for
const object = {
bar: 1
foo: 2
}
would be
interface myInterface {
bar: number
foo: number
}
What if my object is:
const object = [[1,2,3],[4,5,6],[7,8,0]]
What about a 3D array?
How do I define this interface?