Fix HalRepresentationWithEmbedded type (#1793)

Fix HalRepresentationWithEmbedded type since _embedded can be null.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2021-09-02 15:47:15 +02:00
committed by GitHub
parent 0ba8300051
commit 43e1ea06c8
16 changed files with 108 additions and 106 deletions

View File

@@ -44,7 +44,7 @@ export type HalRepresentation = {
};
export type HalRepresentationWithEmbedded<T extends Embedded> = HalRepresentation & {
_embedded: T;
_embedded?: T;
};
export type PagedCollection<T extends Embedded = Embedded> = HalRepresentationWithEmbedded<T> & {