diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c2b207..ac7c403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## [v0.0.6](https://github.com/muellerbbm-vas/grivet/compare/v0.0.5...v0.0.6) - 2019-10-23 + +### Fixed + +- Correct return type of `related*` accessors + ## [v0.0.5](https://github.com/muellerbbm-vas/grivet/compare/v0.0.4...v0.0.5) - 2019-08-27 ### Fixed diff --git a/src/index.ts b/src/index.ts index 15a55dc..e5a2fa1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -238,11 +238,11 @@ export namespace JsonApi { export type Links = { [linkName: string]: Link }; /** @hidden */ - type RelationshipToResource = { [relationshipName: string]: Resource }; + type RelationshipToResource = { [relationshipName: string]: Promise }; /** @hidden */ - type RelationshipToResources = { [relationshipName: string]: Resource[] }; + type RelationshipToResources = { [relationshipName: string]: Promise }; /** @hidden */ - type RelationshipToDocument = { [relationshipName: string]: Document }; + type RelationshipToDocument = { [relationshipName: string]: Promise }; /** @hidden */ class RelatedResourceAccessor implements ProxyHandler {