add types to app file
This commit is contained in:
parent
3ab06bbc66
commit
fc1c4a3224
@ -1,7 +1,12 @@
|
|||||||
|
import type { AppProps } from "next/app";
|
||||||
import "../styles/global.css";
|
import "../styles/global.css";
|
||||||
import "../styles/prism.css";
|
import "../styles/prism.css";
|
||||||
|
import type { HomeProps } from "./notes";
|
||||||
|
import type React from "react";
|
||||||
|
|
||||||
export default function App({ Component, pageProps }) {
|
|
||||||
|
|
||||||
|
export default function App({ Component, pageProps }: AppProps<HomeProps>): React.JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user