Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/data-structures/business.data.structures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ export interface NodeDto {
transitions: TransitionDto[]; // all tranisitons aligned to the node
connections: ConnectionDto[]; // all connections aligned to the node

resourceId: number; // reference to the algined (resource - not yet implemented)
resourceId: number | null; // reference to the algined (resource - not yet implemented)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use | undefined here instead of | null? For DTO specifically, it better reflects that old JSON files are missing this field.

perronkanten: number; // number of tracks where train can stop
connectionTime: number; // aka Umsteigezeit - time used to change train in minutes
trainrunCategoryHaltezeiten: TrainrunCategoryHaltezeit; // user can over-write the halte times
symmetryAxis: number; // deprecate ???
symmetryAxis: number | null; // deprecate ???
warnings: WarningDto[]; // business logic failures - warnings storage

labelIds: number[]; // list of assigned filterable labels (identifiers: See Label, LabelDto.)
Expand Down
Loading
Loading