mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
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:
@@ -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> & {
|
||||
|
||||
Reference in New Issue
Block a user