Skip to content

Commit

Permalink
chore: update typescript (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko authored Dec 23, 2024
1 parent 1cb5ecd commit ad0151c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"strip-ansi": "^6.0.1",
"swc-node": "^1.0.0",
"ts-jest": "^29.2.4",
"typescript": "^4.9.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1"
},
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true,
"moduleResolution": "Node16"
"module": "NodeNext",
},
"include": ["./src"],
"exclude": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/TransNoContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ComponentType } from "react"
import React, { ComponentType, ReactNode } from "react"

import { formatElements } from "./format"
import type { MessageOptions } from "@lingui/core"
Expand Down Expand Up @@ -82,7 +82,7 @@ export function TransNoContext(
}

// react components, arrays, falsy values, all should be processed as JSX children
components[index] = <>{values[key]}</>
components[index] = <>{values[key] as ReactNode}</>
values[key] = `<${index}/>`
})
}
Expand Down
26 changes: 23 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10863,7 +10863,7 @@ __metadata:
strip-ansi: ^6.0.1
swc-node: ^1.0.0
ts-jest: ^29.2.4
typescript: ^4.9.5
typescript: ^5.7.2
typescript-eslint: ^8.18.1
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -15783,7 +15783,7 @@ __metadata:
languageName: unknown
linkType: soft

"typescript@npm:4.9.5, typescript@npm:^4.9.5":
"typescript@npm:4.9.5":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
bin:
Expand All @@ -15803,7 +15803,17 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:[email protected]#~builtin<compat/typescript>, typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
"typescript@npm:^5.7.2":
version: 5.7.2
resolution: "typescript@npm:5.7.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: b55300c4cefee8ee380d14fa9359ccb41ff8b54c719f6bc49b424899d662a5ce62ece390ce769568c7f4d14af844085255e63788740084444eb12ef423b13433
languageName: node
linkType: hard

"typescript@patch:[email protected]#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
bin:
Expand All @@ -15823,6 +15833,16 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^5.7.2#~builtin<compat/typescript>":
version: 5.7.2
resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin<compat/typescript>::version=5.7.2&hash=1f5320"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 803430c6da2ba73c25a21880d8d4f08a56d9d2444e6db2ea949ac4abceeece8e4a442b7b9b585db7d8a0b47ebda2060e45fe8ee8b8aca23e27ec1d4844987ee6
languageName: node
linkType: hard

"ufo@npm:^1.1.2":
version: 1.2.0
resolution: "ufo@npm:1.2.0"
Expand Down

0 comments on commit ad0151c

Please sign in to comment.