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

Proposal: Add Props generic type to SSROptions #402

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

tatemz
Copy link
Contributor

@tatemz tatemz commented Sep 22, 2021

This change is a proposal to add a generic type parameter to the SSROptions type that,
as a result, provides a type for the returned props object. This models
after React's type generics for component types.

See examples/hello-world-ssr/pages/index.tsx for usage example.

This change adds a generic type parameter to the `SSROptions` type that,
as a result, provides a type for the returned props object. This models
after React's type generics for component types.
@tatemz tatemz requested a review from ije as a code owner September 22, 2021 05:35
@ije
Copy link
Member

ije commented Sep 22, 2021

looks great 👍

@ije ije merged commit bd32a27 into alephjs:master Sep 22, 2021
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