add types to app file

This commit is contained in:
Triston Armstrong 2023-12-31 15:25:34 -06:00
parent 3ab06bbc66
commit fc1c4a3224

View File

@ -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} />
); );