For example I have this class property:
public messages : Array<{session: string, messages: [{profile_picture ? : string, type: string, text: string}]}> = []
I want to make something like this public messages : MessagesInterface
in order to be able to use that interface in different places.
I know that is should like something like this:
export interface MessagesInterface {
session: string,
messages: [{profile_picture ? : string, type: string, text: string}]
}
But how to specify that it is array of messages?