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

feat: make ctx.platform typed #80

Merged
merged 1 commit into from
Jul 20, 2023
Merged

feat: make ctx.platform typed #80

merged 1 commit into from
Jul 20, 2023

Conversation

cyco130
Copy link
Member

@cyco130 cyco130 commented Jul 20, 2023

This PR makes typing ctx.platform easier. All relevant functions (e.g. createRouter) now take a generic type parameter for the platform.

All adapters have a unique name that can be used to discriminate the platform object when a union is passed as the generic parameter.

@cyco130 cyco130 merged commit bec153b into main Jul 20, 2023
6 checks passed
@cyco130 cyco130 deleted the feat/typed-platform branch January 8, 2024 15:00
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.

1 participant