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

refactor: rename realtime.d.ts => realtime.ts #2765

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Conversation

firestack
Copy link
Member

I'd like to add an enum to realtime.d.ts but turns out you can't really add and enum to a "definitions" file

@firestack firestack requested a review from a team as a code owner September 3, 2024 15:47
@firestack firestack force-pushed the kf/refactor/realtime branch from f94c170 to 2687415 Compare September 3, 2024 15:48
I'd like to add an `enum` to `realtime.d.ts` but turns out you can't really add
and `enum` to a "definitions" file
@firestack firestack force-pushed the kf/refactor/realtime branch from 2687415 to e90f727 Compare September 3, 2024 15:52
Copy link

github-actions bot commented Sep 3, 2024

Coverage of commit e90f727

Summary coverage rate:
  lines......: 93.0% (3298 of 3547 lines)
  functions..: 72.5% (1360 of 1876 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link

github-actions bot commented Sep 3, 2024

Coverage of commit e90f727

Summary coverage rate:
  lines......: 93.0% (3299 of 3547 lines)
  functions..: 72.5% (1360 of 1876 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

@@ -7,7 +7,7 @@ import {
TimepointId,
TripId,
ViaVariant,
} from "./schedule.d"
} from "./schedule"
Copy link
Contributor

Choose a reason for hiding this comment

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

Curiosity: Is there another schedule.d.ts ==> schedule.ts change associated with this, or can you import things from *.d.ts without the .d?

Looks like the build is passing, so it looks like this didn't break anything O_o

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK you can leave off all the extensions when importing, didn't notice this change though sorry!

I'd be open to reverting that if you feel strongly enough about it.

Copy link
Contributor

Choose a reason for hiding this comment

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

No feelings whatsoever - I was just surprised that it worked.

@firestack firestack merged commit 84bf9a9 into main Sep 3, 2024
33 checks passed
@firestack firestack deleted the kf/refactor/realtime branch September 3, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants