Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
# Conflicts:
#	pnpm-lock.yaml
  • Loading branch information
HaNdTriX committed Sep 20, 2022
1 parent c7f98a1 commit fc6356c
Show file tree
Hide file tree
Showing 5 changed files with 646 additions and 138 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -135,6 +135,7 @@
"eslint-plugin-react-hooks": "4.5.0",
"event-stream": "4.0.1",
"execa": "2.0.3",
"expect-type": "0.14.2",
"express": "4.17.0",
"faker": "5.5.3",
"faunadb": "2.6.1",
Expand Down
7 changes: 3 additions & 4 deletions packages/next/types/index.d.ts
Expand Up @@ -178,10 +178,9 @@ export type GetServerSideProps<
context: GetServerSidePropsContext<Q, D>
) => Promise<GetServerSidePropsResult<P>>

export type InferGetServerSidePropsType<T extends (args: any) => any> = Extract<
Awaited<ReturnType<T>>,
{ props: any }
>['props']
export type InferGetServerSidePropsType<T extends (args: any) => any> = Awaited<
Extract<Awaited<ReturnType<T>>, { props: any }>['props']
>

declare global {
interface Crypto {
Expand Down

0 comments on commit fc6356c

Please sign in to comment.