From 9cf2184d09e431648d479f76f737fc97ade3bb6a Mon Sep 17 00:00:00 2001 From: Noritaka Kobayashi Date: Mon, 26 May 2025 01:30:11 +0900 Subject: [PATCH] refactor: remove unused import & fix typos in docs (#3471) --- docs/components/alert.tsx | 1 - docs/components/info.tsx | 1 - docs/components/logo.tsx | 2 -- docs/pages/_app.js | 6 +----- docs/pages/apis/pool.mdx | 4 ++-- docs/pages/index.mdx | 2 +- 6 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/components/alert.tsx b/docs/components/alert.tsx index 7bf2237c..752b49ea 100644 --- a/docs/components/alert.tsx +++ b/docs/components/alert.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Callout } from 'nextra-theme-docs' export const Alert = ({ children }) => { diff --git a/docs/components/info.tsx b/docs/components/info.tsx index a61e17fb..9cae4b89 100644 --- a/docs/components/info.tsx +++ b/docs/components/info.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Callout } from 'nextra-theme-docs' export const Info = ({ children }) => { diff --git a/docs/components/logo.tsx b/docs/components/logo.tsx index 5d1175de..5252b444 100644 --- a/docs/components/logo.tsx +++ b/docs/components/logo.tsx @@ -1,5 +1,3 @@ -import React from 'react' - type Props = { src: string alt?: string diff --git a/docs/pages/_app.js b/docs/pages/_app.js index 19532b06..3e7701bf 100644 --- a/docs/pages/_app.js +++ b/docs/pages/_app.js @@ -1,9 +1,5 @@ import 'nextra-theme-docs/style.css' export default function Nextra({ Component, pageProps }) { - return ( - <> - - - ) + return } diff --git a/docs/pages/apis/pool.mdx b/docs/pages/apis/pool.mdx index 0a7dd1a4..a94baed7 100644 --- a/docs/pages/apis/pool.mdx +++ b/docs/pages/apis/pool.mdx @@ -29,14 +29,14 @@ type Config = { idleTimeoutMillis?: number // maximum number of clients the pool should contain - // by default this is set to 10. There is some nuance to setting the maxium size of your pool. + // by default this is set to 10. There is some nuance to setting the maximum size of your pool. // see https://node-postgres.com/guides/pool-sizing for more information max?: number // minimum number of clients the pool should hold on to and _not_ destroy with the idleTimeoutMillis // this can be useful if you get very bursty traffic and want to keep a few clients around. // note: current the pool will not automatically create and connect new clients up to the min, it will - // only not evict and close clients except those which execeed the min count. + // only not evict and close clients except those which exceed the min count. // the default is 0 which disables this behavior. min?: number diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx index 5a9011b0..bcaaaecd 100644 --- a/docs/pages/index.mdx +++ b/docs/pages/index.mdx @@ -73,7 +73,7 @@ try { ### Pooling -In most applications you'll wannt to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it: +In most applications you'll want to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it: ```js import { Pool } from 'pg'