title: Add PropTypes (Component - pageProps) to app.jsx in a nextjs app
body: <p>I am working on a Next.js project and I've added ESLint to it so I've to add PropTypes to each file. Here is the <code>app.jsx</code> component where the props are, <code>Component, pageProps</code>:</p>
  <pre><code>const App = ({ Component, pageProps: { session, ...pageProps } }) =&gt; {
      const getLayout = Component.getLayout || ((page) =&gt; page);
      return (
          &lt;ThemeProvider theme={theme}&gt;
            {globalStyles}
            {getLayout(&lt;Component {...pageProps} /&gt;)}
          &lt;/ThemeProvider&gt;
      );
  };
  </code></pre>
  <p>The PropType of the <code>Component</code> is know but does anyone know how we can define a PropType for <code>pageProps</code> knowing that the project is in JavaScript not TypeScript?</p>