creating object of type nested code example
Example: creating object of type nested
interface EndpointAuth {
login: string;
}
interface Endpoint {
auth: EndpointAuth;
}
const endpoints: Endpoint = {
auth: {
login: "http://localhost:8079/auth/login"
}
};