Typescript interfaces
IJsonapiCollection
Interface used to represent a datx
collection enhanced with the datx-jsonapi
mixin.
IJsonapiModel
Interface used to represent a datx
model enhanced with the datx-jsonapi
mixin.
IRequestOptions
Interface defining the network request options (all optional):
skipCache: boolean;
- Ignore the network cacheheaders
- Request headers object- JSON API params (Note: support depends on the server implementation)
include: string|Array<string>
- Models that should be included in the responsesort: string|Array<string>
- Sorting rules for the serverfields: IDictionary<string|Array<string>>
- Fields that should be returned in the responsefilter: IFilters
- A dictionary of the filters that should be used on the server
params
- Raw params sent to the server (if not covered by the JSON API options)