createContext and typescript

if i have context like this
export const FavoriteContext = createContext<any>(null)

and then in next _app doing something like
const [favorite, setFavorite] = useState<Array<string>>([]);

<FavoriteContext.Provider value={{ favorite, setFavorite }}>

how should I type it correctly? now type of
{ favorite, setFavorite }
is any that's obviously bad right?
Was this page helpful?