In this link: https://mobx-react.js.org/recipes-context line 10 of the create store there is:
friends: [] as TFriend[],
What does this mean? Is this Javascript or is this specifically for MobX?
In the beginning theres:
export type TFriend = {
name: string
isFavorite: boolean
isSingle: boolean
}
Why is there a need to call friends an array as the export type?