Skip to content

Commit 856e6b8

Browse files
fix: minor lint and typing issues
1 parent cbddc7d commit 856e6b8

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

examples/full/lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ export const isDev =
2020
process.env.NODE_ENV === 'development' || !process.env.NODE_ENV
2121

2222
export const port = process.env.PORT || 3000
23-
export const rootDomain = isDev ? `localhost:${port}` : null
23+
export const rootDomain = isDev ? `localhost:${port}` : undefined

examples/full/lib/preview-images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function createPreviewImage(url: string): Promise<PreviewImage | null> {
4242
originalHeight: result.metadata.originalHeight,
4343
dataURIBase64: result.metadata.dataURIBase64
4444
}
45-
} catch (err) {
45+
} catch (err: any) {
4646
if (err.message === 'Input buffer contains unsupported image format') {
4747
return null
4848
}

examples/full/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/full/pages/[pageId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '../lib/config'
1212
import * as notion from '../lib/notion'
1313

14-
export const getStaticProps = async (context) => {
14+
export const getStaticProps = async (context: any) => {
1515
const pageId = context.params.pageId as string
1616
const recordMap = await notion.getPage(pageId)
1717

examples/full/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'react-notion-x/src/styles.css'
77
// app styles
88
import '../styles/globals.css'
99

10-
function MyApp({ Component, pageProps }) {
10+
function MyApp({ Component, pageProps }: any) {
1111
return <Component {...pageProps} />
1212
}
1313

examples/full/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Document, { Head, Html, Main, NextScript } from 'next/document'
22

33
export default class MyDocument extends Document {
4-
render() {
4+
override render() {
55
return (
66
<Html lang='en'>
77
<Head />

examples/minimal/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/minimal/pages/[pageId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { NotionPage } from '../components/NotionPage'
44
import { rootNotionPageId } from '../lib/config'
55
import notion from '../lib/notion'
66

7-
export const getStaticProps = async (context) => {
7+
export const getStaticProps = async (context: any) => {
88
const pageId = (context.params.pageId as string) || rootNotionPageId
99
const recordMap = await notion.getPage(pageId)
1010

examples/minimal/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import '../styles/globals.css'
88
// used for rendering equations (optional)
99
// import 'katex/dist/katex.min.css'
1010

11-
function MyApp({ Component, pageProps }) {
11+
function MyApp({ Component, pageProps }: any) {
1212
return <Component {...pageProps} />
1313
}
1414

examples/minimal/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Document, { Head, Html, Main, NextScript } from 'next/document'
22

33
export default class MyDocument extends Document {
4-
render() {
4+
override render() {
55
return (
66
<Html lang='en'>
77
<Head />

0 commit comments

Comments
 (0)