Typescript definitions for HAL in spring hateoas
npm install hateoas-hal-types
type Foo = {
A:string
B:HalLink
}
// Helper to build HalModel
const test: EntityModel = {
A:"abc",
_links:{
self: {href: "https://self.self"}
B: {href: "https://test.test"}
}
}
// Helper to access HalModel
console.log(test.A)
console.log(test._links.B.href)
```