-
Notifications
You must be signed in to change notification settings - Fork 79
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
Typescript Example? #66
Comments
@adamsoffer No afaik 😢 |
@adamsoffer I got it working like this withApolloClient.tsx
_app.tsx
index.tsx
This example is now using apollo-codegen and I am using |
thanks @NikoMontana ! |
@adamsoffer here is the updated interface for _app.tsx
|
https://github.com/UnlyEd/next-right-now is completely OSS and uses this package, it also uses TS. See |
Use these instead of the next type signatures for type GetServerSidePropsWithApollo<
P extends { [key: string]: any } = { [key: string]: any },
Q extends ParsedUrlQuery = ParsedUrlQuery
> = (
context: GetServerSidePropsContext<Q> & {
apolloClient: ApolloClient<InMemoryCache>;
}
) => Promise<GetServerSidePropsResult<P>>;
type GetStaticPropsWithApollo<
P extends { [key: string]: any } = { [key: string]: any },
Q extends ParsedUrlQuery = ParsedUrlQuery
> = (
context: GetStaticPropsContext<Q> & {
apolloClient: ApolloClient<InMemoryCache>;
}
) => Promise<GetStaticPropsResult<P>>; |
Are there any typescript examples that use this library that you know of?
The text was updated successfully, but these errors were encountered: