build: enhance tsconfig type check (#2732)

This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by GitHub
parent fc9a9f479b
commit b383ce36cd
34 changed files with 111 additions and 68 deletions

View File

@@ -12,7 +12,7 @@ const description =
export default class AppDocument extends Document<{
emotionStyleTags: EmotionJSX.Element[];
}> {
static getInitialProps = async (ctx: DocumentContext) => {
static override getInitialProps = async (ctx: DocumentContext) => {
const originalRenderPage = ctx.renderPage;
const cache = createEmotionCache();
@@ -41,7 +41,7 @@ export default class AppDocument extends Document<{
emotionStyleTags,
};
};
render() {
override render() {
return (
<Html>
<Head>

View File

@@ -63,6 +63,7 @@ const IndexPageInner = () => {
} else {
console.warn('No target workspace. This should not happen in production');
}
return;
}, [helper, jumpToPage, jumpToSubPath, router, workspaces]);
return (