-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Describe the bug
import * as JSONAPI from "jsonapi-typescript";
// ⛔️ Error: Object literal may only specify known properties, and 'about' does not
// exist in type 'Links'.ts(2322)
let doc: JSONAPI.Document = {
errors: [
{
links: {
about: "http://www.example.com/about"
}
}
]
};ErrorObject.links is specified to be a Links type which does not allow an about member. The "Error Objects" section of the spec allows "about" to be a member of "links"
To Reproduce
Steps to reproduce the behavior:
- Paste above code into an editor that gives typescript errors
Expected behavior
No error
Additional context
For now, I'm using Record<string, JSONAPI.Link> type for the links member
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels