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

[email protected] type errors #50

Open
danwetherald opened this issue Jun 9, 2021 · 2 comments
Open

[email protected] type errors #50

danwetherald opened this issue Jun 9, 2021 · 2 comments

Comments

@danwetherald
Copy link

type props
type params

let getServerSideProps: Next.GetServerSideProps.t<props, params, _>
let default: props => React.element

image

@ryyppy
Copy link
Owner

ryyppy commented Jun 10, 2021

params is typed as a Js.t<'params> within Next.res, which means that the params type must be of type {. } (instead of being abstract).

I will relax that definition on master.

@ryyppy
Copy link
Owner

ryyppy commented Jun 10, 2021

Check 260c38a

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

No branches or pull requests

2 participants