Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants