Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: fix typing of TrainScheduleImportConfig.{from,to} #9814

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

emersion
Copy link
Member

These are defined as strings, but we were passing ImportStation objects. The type error was silenced with a "as" keyword.

We need to move the ImportStation type from StationCard to src/applications/operationalStudies/types.ts to use it in TrainScheduleImportConfig.

No functional change - only typing changes.

These are defined as strings, but we were passing ImportStation
objects. The type error was silenced with a "as" keyword.

We need to move the ImportStation type from StationCard to
src/applications/operationalStudies/types.ts to use it in
TrainScheduleImportConfig.

No functional change - only typing changes.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion requested a review from a team as a code owner November 21, 2024 15:43
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Nov 21, 2024
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm and tested

@clarani clarani added this pull request to the merge queue Nov 22, 2024
Merged via the queue into dev with commit 3422531 Nov 22, 2024
27 checks passed
@clarani clarani deleted the emr/fix-graou-station-typing branch November 22, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants