Skip to content

Commit

Permalink
Chore: Upgrade to TS 5.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jan 28, 2024
1 parent 4dee2b1 commit b35b6bb
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 25 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
],
"devDependencies": {
"@sindresorhus/tsconfig": "^4.0.0",
"@types/node": "^20.10.7",
"@types/node": "^20.11.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vitest/coverage-v8": "^1.2.2",
Expand All @@ -67,7 +67,7 @@
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"turbo": "^1.11.3",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
},
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"dependencies": {
"@inquirer/type": "^1.1.6",
"@types/mute-stream": "^0.0.4",
"@types/node": "^20.10.7",
"@types/node": "^20.11.10",
"@types/wrap-ansi": "^3.0.0",
"ansi-escapes": "^4.3.2",
"chalk": "^4.1.2",
Expand Down
7 changes: 2 additions & 5 deletions packages/select/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type SelectConfig<Value> = PromptConfig<{
choices: ReadonlyArray<Choice<Value> | Separator>;
pageSize?: number;
loop?: boolean;
default?: Value;
default?: unknown;
}>;

type Item<Value> = Separator | Choice<Value>;
Expand All @@ -57,10 +57,7 @@ function renderItem<Value>({ item, isActive }: { item: Item<Value>; isActive: bo
}

export default createPrompt(
<Value extends unknown>(
config: SelectConfig<Value>,
done: (value: Value) => void,
): string => {
<Value,>(config: SelectConfig<Value>, done: (value: Value) => void): string => {
const { choices: items, loop = true, pageSize = 7 } = config;
const firstRender = useRef(true);
const prefix = usePrefix();
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"dependencies": {
"@inquirer/type": "^1.1.6",
"@types/mute-stream": "^0.0.4",
"@types/node": "^20.10.7",
"@types/node": "^20.11.10",
"ansi-escapes": "^4.3.2",
"mute-stream": "^1.0.0",
"strip-ansi": "^6.0.1"
Expand Down
32 changes: 16 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ __metadata:
"@inquirer/testing": ^2.1.10
"@inquirer/type": ^1.1.6
"@types/mute-stream": ^0.0.4
"@types/node": ^20.10.7
"@types/node": ^20.11.10
"@types/wrap-ansi": ^3.0.0
ansi-escapes: ^4.3.2
chalk: ^4.1.2
Expand Down Expand Up @@ -510,7 +510,7 @@ __metadata:
dependencies:
"@inquirer/type": ^1.1.6
"@types/mute-stream": ^0.0.4
"@types/node": ^20.10.7
"@types/node": ^20.11.10
ansi-escapes: ^4.3.2
mute-stream: ^1.0.0
strip-ansi: ^6.0.1
Expand Down Expand Up @@ -1414,12 +1414,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^20.10.7":
version: 20.10.7
resolution: "@types/node@npm:20.10.7"
"@types/node@npm:^20.11.10":
version: 20.11.10
resolution: "@types/node@npm:20.11.10"
dependencies:
undici-types: ~5.26.4
checksum: 86f4f96f5169538f47bbd652ab8e3712cd307701481ff3e9ce0c1ea7d8424a38b5ac4a1d33088cdd9ea1bfe68fd27bbae005a21969aa6d9a36295904da6f09f2
checksum: 58544f52c14d839cc5fca7a9f001303016aefa85fea684de9aa3c24a1340a55a03a6744fa20f601ca032a9f9d08b32c1ff074ccb75dcd57d61a1a65c50a949b1
languageName: node
linkType: hard

Expand Down Expand Up @@ -7714,7 +7714,7 @@ __metadata:
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@sindresorhus/tsconfig": ^4.0.0
"@types/node": ^20.10.7
"@types/node": ^20.11.10
"@typescript-eslint/eslint-plugin": ^6.19.1
"@typescript-eslint/parser": ^6.19.1
"@vitest/coverage-v8": ^1.2.2
Expand All @@ -7733,7 +7733,7 @@ __metadata:
prettier: ^3.2.4
ts-node: ^10.9.2
turbo: ^1.11.3
typescript: ^5.2.2
typescript: ^5.3.3
vitest: ^1.2.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -8829,13 +8829,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^5.2.2":
version: 5.2.2
resolution: "typescript@npm:5.2.2"
"typescript@npm:^5.3.3":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c
checksum: 2007ccb6e51bbbf6fde0a78099efe04dc1c3dfbdff04ca3b6a8bc717991862b39fd6126c0c3ebf2d2d98ac5e960bcaa873826bb2bb241f14277034148f41f6a2
languageName: node
linkType: hard

Expand All @@ -8849,13 +8849,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^5.2.2#~builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=14eedb"
"typescript@patch:typescript@^5.3.3#~builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=14eedb"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 07106822b4305de3f22835cbba949a2b35451cad50888759b6818421290ff95d522b38ef7919e70fb381c5fe9c1c643d7dea22c8b31652a717ddbd57b7f4d554
checksum: f61375590b3162599f0f0d5b8737877ac0a7bc52761dbb585d67e7b8753a3a4c42d9a554c4cc929f591ffcf3a2b0602f65ae3ce74714fd5652623a816862b610
languageName: node
linkType: hard

Expand Down

0 comments on commit b35b6bb

Please sign in to comment.