Перейти к основному содержимому

Создание типов на основе имеющихся объектов при помощи typeof

export const routes = {
authentication: {
name: 'AuthenticationScreen',
children: {},
}
};

export type Routes = typeof routes;

let a: Routes = {
authentication: {
name: '',
children: {}
}
};