chore: upgrade typescript and "@types/"-prefixed packages

This commit is contained in:
Alessio Gravili
2024-04-06 15:35:09 -04:00
parent f29d22ca95
commit 1853fde379
19 changed files with 293 additions and 496 deletions

View File

@@ -88,13 +88,13 @@
"@types/conventional-changelog-writer": "^4.0.10",
"@types/fs-extra": "^11.0.2",
"@types/jest": "29.5.12",
"@types/minimist": "1.2.2",
"@types/node": "20.11.28",
"@types/minimist": "1.2.5",
"@types/node": "20.12.5",
"@types/prompts": "^2.4.5",
"@types/qs": "6.9.7",
"@types/react": "18.2.15",
"@types/qs": "6.9.14",
"@types/react": "18.2.74",
"@types/semver": "^7.5.3",
"@types/shelljs": "0.8.12",
"@types/shelljs": "0.8.15",
"add-stream": "^1.0.0",
"chalk": "^4.1.2",
"comment-json": "^4.2.3",
@@ -154,7 +154,7 @@
"ts-node": "10.9.1",
"tsx": "^4.7.1",
"turbo": "^1.13.2",
"typescript": "5.4.2",
"typescript": "5.4.4",
"uuid": "^9.0.1",
"yocto-queue": "^1.0.0"
},

View File

@@ -48,7 +48,7 @@
"@types/esprima": "^4.0.6",
"@types/fs-extra": "^9.0.12",
"@types/jest": "^27.0.3",
"@types/node": "^16.6.2"
"@types/node": "20.12.5"
},
"exports": {
"./commands": {

View File

@@ -26,7 +26,7 @@
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@types/react": "^18.2.0",
"@types/react": "18.2.74",
"payload": "workspace:*"
},
"peerDependencies": {

View File

@@ -36,8 +36,8 @@
"devDependencies": {
"@next/eslint-plugin-next": "^14.1.0",
"@payloadcms/eslint-config": "workspace:*",
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
"@types/react": "18.2.74",
"@types/react-dom": "18.2.24",
"@types/ws": "^8.5.10",
"css-loader": "^6.10.0",
"css-minimizer-webpack-plugin": "^6.0.0",

View File

@@ -6,11 +6,12 @@ import './index.scss'
const baseClass = 'live-preview-iframe'
export const IFrame: React.FC<{
ref: React.Ref<HTMLIFrameElement>
type Props = {
setIframeHasLoaded: (value: boolean) => void
url: string
}> = forwardRef((props, ref) => {
}
export const IFrame = forwardRef<HTMLIFrameElement, Props>((props, ref) => {
const { setIframeHasLoaded, url } = props
const { zoom } = useLivePreviewContext()

View File

@@ -34,7 +34,7 @@
"@payloadcms/eslint-config": "workspace:*",
"@types/escape-html": "^1.0.4",
"@types/express": "^4.17.21",
"@types/react": "18.2.15",
"@types/react": "18.2.74",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"nodemon": "3.0.3",

View File

@@ -36,7 +36,7 @@
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@types/express": "^4.17.9",
"@types/react": "18.0.21",
"@types/react": "18.2.74",
"payload": "workspace:*",
"react": "^18.0.0"
},

View File

@@ -41,7 +41,7 @@
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@types/express": "^4.17.9",
"@types/react": "18.0.21",
"@types/react": "18.2.74",
"payload": "workspace:*",
"react": "^18.0.0"
},

View File

@@ -44,8 +44,8 @@
"@payloadcms/eslint-config": "workspace:*",
"@types/express": "^4.17.9",
"@types/jest": "^29.5.2",
"@types/node": "18.11.3",
"@types/react": "18.0.21",
"@types/node": "20.12.5",
"@types/react": "18.2.74",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",

View File

@@ -40,7 +40,7 @@
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@types/react": "18.2.15",
"@types/react": "18.2.74",
"payload": "workspace:*",
"@payloadcms/translations": "workspace:*",
"@payloadcms/ui": "workspace:*",

View File

@@ -45,7 +45,7 @@
"@payloadcms/eslint-config": "workspace:*",
"@types/express": "^4.17.9",
"@types/lodash.get": "^4.4.7",
"@types/react": "18.0.21",
"@types/react": "18.2.74",
"@types/uuid": "^9.0.0",
"payload": "workspace:*",
"prettier": "^2.7.1",

View File

@@ -47,9 +47,9 @@
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@types/json-schema": "7.0.15",
"@types/node": "20.6.2",
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
"@types/node": "20.12.5",
"@types/react": "18.2.74",
"@types/react-dom": "18.2.24",
"payload": "workspace:*",
"@payloadcms/translations": "workspace:*",
"@payloadcms/ui": "workspace:*",

View File

@@ -33,8 +33,8 @@
"devDependencies": {
"@payloadcms/ui": "workspace:*",
"@payloadcms/eslint-config": "workspace:*",
"@types/node": "20.5.7",
"@types/react": "18.2.15",
"@types/node": "20.12.5",
"@types/react": "18.2.74",
"payload": "workspace:*"
},
"peerDependencies": {

View File

@@ -56,8 +56,8 @@
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
"@swc/core": "^1.3.102",
"@types/react": "^18",
"typescript": "5.4.2"
"@types/react": "18.2.74",
"typescript": "5.4.4"
},
"files": [
"dist"

View File

@@ -174,9 +174,9 @@
"@payloadcms/eslint-config": "workspace:*",
"@types/body-scroll-lock": "^3.1.0",
"@types/qs": "6.9.7",
"@types/react": "18.2.15",
"@types/react": "18.2.74",
"@types/react-datepicker": "4.11.2",
"@types/react-dom": "18.2.7",
"@types/react-dom": "18.2.24",
"@types/uuid": "8.3.4",
"postcss-loader": "^8.1.1",
"postcss-preset-env": "^9.5.0",

View File

@@ -1,5 +1,3 @@
import type { Ref } from 'react'
import React, { forwardRef } from 'react'
import './index.scss'
@@ -10,14 +8,12 @@ export type GutterProps = {
left?: boolean
negativeLeft?: boolean
negativeRight?: boolean
ref?: Ref<HTMLDivElement>
right?: boolean
}
const baseClass = 'gutter'
export const Gutter: React.FC<GutterProps> = forwardRef<HTMLDivElement, GutterProps>(
(props, ref) => {
export const Gutter = forwardRef<HTMLDivElement, GutterProps>((props, ref) => {
const {
children,
className,
@@ -46,7 +42,6 @@ export const Gutter: React.FC<GutterProps> = forwardRef<HTMLDivElement, GutterPr
{children}
</div>
)
},
)
})
Gutter.displayName = 'Gutter'

665
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -41,6 +41,6 @@
"payload": "workspace:*",
"tempy": "^1.0.1",
"ts-essentials": "7.0.3",
"typescript": "5.4.2"
"typescript": "5.4.4"
}
}