Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit f9486c8

Browse files
committed
style fixes
1 parent 5416867 commit f9486c8

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export default function Custom404() {
1+
export default function Custom404(): JSX.Element {
22
return <h1>Custom 404</h1>;
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export default function Custom500() {
1+
export default function Custom500(): JSX.Element {
22
return <h1>Custom 500</h1>;
33
}

packages/e2e-tests/next-app-experimental/pages/errored-page-new-ssr.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { NextPageContext } from "next";
32

43
type ErroredPageNewSsrProps = {
54
name: string;
@@ -15,7 +14,7 @@ export default function ErroredPageNewSsr(
1514
);
1615
}
1716

18-
export function getServerSideProps(ctx: NextPageContext): {
17+
export function getServerSideProps(): {
1918
props: ErroredPageNewSsrProps;
2019
} {
2120
throw new Error("Error occurred!");

packages/e2e-tests/next-app-experimental/pages/errored-page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { NextPageContext } from "next";
32

43
type ErroredPageProps = {
54
name: string;
@@ -14,7 +13,7 @@ export default function ErroredPageProps(props: ErroredPageProps): JSX.Element {
1413
}
1514

1615
// getInitialProps() is the old way of doing SSR
17-
ErroredPageProps.getInitialProps = (ctx: NextPageContext): ErroredPageProps => {
16+
ErroredPageProps.getInitialProps = (): ErroredPageProps => {
1817
// Simulate a server-side error by always throwing an error.
1918
throw new Error(`Error occurred!`);
2019
};

packages/e2e-tests/next-app-experimental/pages/image-component.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from "react";
2-
import { GetStaticPropsContext } from "next";
32
import Image from "next/image";
43

54
type ImageComponentProps = {
65
name: string;
76
};
87

9-
export default function ImageComponentPage(props: any): JSX.Element {
8+
export default function ImageComponentPage(
9+
props: ImageComponentProps
10+
): JSX.Element {
1011
return (
1112
<React.Fragment>
1213
{`Hello ${props.name}! This is an SSG Page using getStaticProps() and with the new Image component.`}
@@ -20,7 +21,7 @@ export default function ImageComponentPage(props: any): JSX.Element {
2021
);
2122
}
2223

23-
export function getStaticProps(ctx: GetStaticPropsContext): {
24+
export function getStaticProps(): {
2425
props: ImageComponentProps;
2526
} {
2627
return {

packages/e2e-tests/next-app-experimental/pages/ssr-page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import { NextPageContext } from "next";
32

43
type SSRPageProps = {
54
name: string;
@@ -14,6 +13,6 @@ export default function SSRPage(props: SSRPageProps): JSX.Element {
1413
}
1514

1615
// getInitialProps() is the old way of doing SSR
17-
SSRPage.getInitialProps = (ctx: NextPageContext): SSRPageProps => {
16+
SSRPage.getInitialProps = (): SSRPageProps => {
1817
return { name: "serverless-next.js" };
1918
};

0 commit comments

Comments
 (0)