Skip to content

Commit

Permalink
fix: tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Jul 6, 2022
1 parent b3f3232 commit 2326ff7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion examples/swr-devtools-demo/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class MyDocument extends Document {
ctx.renderPage = () =>
originalRenderPage({
enhanceApp: (App) => (props) =>
// @ts-expect-error error TS2786: 'App' cannot be used as a JSX component.
sheet.collectStyles(<App {...props} />),
});

Expand Down
1 change: 0 additions & 1 deletion examples/swr-v1-devtools-demo/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class MyDocument extends Document {
ctx.renderPage = () =>
originalRenderPage({
enhanceApp: (App) => (props) =>
// @ts-expect-error
sheet.collectStyles(<App {...props} />),
});

Expand Down
1 change: 1 addition & 0 deletions examples/swr-v1-legacy-devtools-demo/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const fetcher = async (url) => {

function MyApp({ Component, pageProps }) {
return (
// @ts-expect-error
<SWRConfig value={{ fetcher }}>
<SWRDevTools>
<Component {...pageProps} />
Expand Down
1 change: 0 additions & 1 deletion examples/swr-v1-legacy-devtools-demo/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default class MyDocument extends Document {
ctx.renderPage = () =>
originalRenderPage({
enhanceApp: (App) => (props) =>
// @ts-expect-error
sheet.collectStyles(<App {...props} />),
});

Expand Down

0 comments on commit 2326ff7

Please sign in to comment.