React.createContext(
{
name: '',
link: '',
owner: {
_id: ''
}
}
)
type MyContextType = {
name: string;
link: string;
owner: {
_id: string;
};
}
const context = React.createContext({} as MyContextType);
А с undefined дурацкий вариант, придется проверять результат useContext.
пихать в провайдер ложный объект