We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1531a2 commit 9eb1973Copy full SHA for 9eb1973
tools/tools.tsx
@@ -10,11 +10,9 @@ type SuperJSONProps<P> = P & {
10
};
11
12
export function withSuperJSONProps<P>(
13
- gssp: GetServerSideProps<P> | undefined,
+ gssp: GetServerSideProps<P>,
14
exclude: string[] = []
15
-): GetServerSideProps<SuperJSONProps<P>> | undefined {
16
- if (gssp === undefined)
17
- return undefined;
+): GetServerSideProps<SuperJSONProps<P>> {
18
return async function withSuperJSON(...args) {
19
const result = await gssp(...args);
20
@@ -57,8 +55,6 @@ export function withSuperJSONInitProps(
57
55
gip: any,
58
56
59
): any {
60
- if (gip === undefined)
61
62
return async function withSuperJSON(...args: any[]) {
63
const result = await gip(...args);
64
0 commit comments