How to declare JavaScript like nested objects in TypeScript?
let endpoints = {
auth: {
login: http://localhost:8079/auth/login
}
};
The following does not work:
private endpoints: Object = {
auth: {
login: http://localhost:8079/auth/login
}
};
Throws:
error TS2339: Property 'auth' does not exist on type 'Object'.