Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Sep 19, 2022
1 parent e0fca68 commit 046e0dd
Show file tree
Hide file tree
Showing 5 changed files with 645 additions and 136 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,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
Loading

0 comments on commit 046e0dd

Please sign in to comment.