# Run following command
npm i hateoas-typescript-model-test
# Then import needed type from the library
- import {HalLink, HalLinks, HalPage, Resource, ResourceCollection} from 'hateoas-typescript-model-test';
Keep in mind
# Type Resource and ResourceCollection uses generic type variables
type Resource<T>
interface ResourceCollection<T, K extends string>
You may take a deeper look at the model in :
node_modules/hateoas-typescript-model-test/dist/types/index.d.ts