Skip to content

Commit c70bbbc

Browse files
committed
Updated to TS 5.1
1 parent 3b2647f commit c70bbbc

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"cross-fetch": "^3.1.5",
1111
"jsdom": "^21.1.1",
1212
"prettier": "^2.8.7",
13-
"typescript": "^5.0.3",
13+
"typescript": "^5.1.3",
1414
"vite-tsconfig-paths": "^4.0.7",
1515
"vitest": "^0.31.1"
1616
},
@@ -106,4 +106,4 @@
106106
"ts-toolbelt": "^9.6.0",
107107
"zod": "^3.19.1"
108108
}
109-
}
109+
}

scripts/tests/__snapshots__/all.test.ts.snap

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ src/01-branded-types/06-index-signatures.problem.ts(59,3): error TS2578: Unused
1717
src/02-globals/07-add-function-to-global-scope.problem.ts(20,12): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
1818
src/02-globals/07-add-function-to-global-scope.problem.ts(21,12): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
1919
src/02-globals/07-add-function-to-global-scope.problem.ts(24,10): error TS2304: Cannot find name 'myFunc'.
20-
src/02-globals/07-add-function-to-global-scope.problem.ts(25,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
2120
src/02-globals/07-add-function-to-global-scope.problem.ts(25,36): error TS2304: Cannot find name 'myFunc'.
2221
src/02-globals/07-add-function-to-global-scope.problem.ts(29,10): error TS2304: Cannot find name 'myVar'.
23-
src/02-globals/07-add-function-to-global-scope.problem.ts(30,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
2422
src/02-globals/07-add-function-to-global-scope.problem.ts(30,36): error TS2304: Cannot find name 'myVar'.
2523
src/02-globals/08-add-to-window.problem.ts(13,8): error TS2339: Property 'makeGreeting' does not exist on type 'Window & typeof globalThis'.
2624
src/02-globals/08-add-to-window.problem.ts(16,17): error TS2339: Property 'makeGreeting' does not exist on type 'Window & typeof globalThis'.
27-
src/02-globals/08-add-to-window.problem.ts(18,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
2825
src/02-globals/08-add-to-window.problem.ts(18,43): error TS2339: Property 'makeGreeting' does not exist on type 'Window & typeof globalThis'.
2926
src/02-globals/09-adding-to-process-env.problem.ts(23,24): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3027
src/02-globals/10-event-dispatcher.problem.1.ts(36,19): error TS2322: Type '\\"LOG_OUT\\"' is not assignable to type '\\"LOG_IN\\"'.
@@ -49,7 +46,6 @@ src/03-type-predicates-assertion-functions/15-type-predicates-with-generics.prob
4946
src/03-type-predicates-assertion-functions/16-brands-and-type-predicates.problem.ts(35,23): error TS2345: Argument of type 'PasswordValues' is not assignable to parameter of type 'Valid<PasswordValues>'.
5047
src/03-type-predicates-assertion-functions/17-brands-and-assertion-functions.problem.ts(34,21): error TS2345: Argument of type 'PasswordValues' is not assignable to parameter of type 'Valid<PasswordValues>'.
5148
src/04-classes/17.8-classes-as-types-and-value.problem.ts(12,17): error TS18046: 'error' is of type 'unknown'.
52-
src/04-classes/17.8-classes-as-types-and-value.problem.ts(14,22): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5349
src/04-classes/17.8-classes-as-types-and-value.problem.ts(14,35): error TS18046: 'error' is of type 'unknown'.
5450
src/04-classes/18-type-predicates-and-classes.problem.ts(41,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5551
src/04-classes/18.2-assertion-functions-and-classes.problem.ts(26,25): error TS2344: Type 'false' does not satisfy the constraint 'true'.
@@ -89,13 +85,9 @@ src/06-identity-functions/30.5-reverse-mapped-types.problem.ts(8,11): error TS70
8985
src/06-identity-functions/30.5-reverse-mapped-types.problem.ts(11,24): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9086
src/06-identity-functions/30.5-reverse-mapped-types.problem.ts(13,11): error TS7006: Parameter 'name' implicitly has an 'any' type.
9187
src/06-identity-functions/30.5-reverse-mapped-types.problem.ts(16,24): error TS2344: Type 'false' does not satisfy the constraint 'true'.
92-
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(13,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9388
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(13,30): error TS2339: Property 'add' does not exist on type 'Window & typeof globalThis'.
94-
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(14,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9589
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(14,30): error TS2339: Property 'subtract' does not exist on type 'Window & typeof globalThis'.
96-
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(15,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9790
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(15,30): error TS2339: Property 'multiply' does not exist on type 'Window & typeof globalThis'.
98-
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(16,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9991
src/07-challenges/31-merge-dynamic-object-with-global.problem.ts(16,30): error TS2339: Property 'divide' does not exist on type 'Window & typeof globalThis'.
10092
src/07-challenges/32-narrow-with-arrays.problem.ts(10,35): error TS18046: 'fruit' is of type 'unknown'.
10193
src/07-challenges/32-narrow-with-arrays.problem.ts(31,1): error TS2578: Unused '@ts-expect-error' directive.
@@ -112,8 +104,6 @@ src/07-challenges/34-dynamic-reducer.problem.ts(52,36): error TS2558: Expected 0
112104
src/07-challenges/34-dynamic-reducer.problem.ts(55,5): error TS2345: Argument of type '(state: unknown, action: { username: string; password: string; }) => { username: string; password: string; }' is not assignable to parameter of type '(state: unknown, payload: unknown) => unknown'.
113105
Types of parameters 'action' and 'payload' are incompatible.
114106
Type 'unknown' is not assignable to type '{ username: string; password: string; }'.
115-
src/07-challenges/34-dynamic-reducer.problem.ts(75,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
116-
src/07-challenges/34-dynamic-reducer.problem.ts(86,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
117107
src/07-challenges/34-dynamic-reducer.problem.ts(95,7): error TS2578: Unused '@ts-expect-error' directive.
118108
src/07-challenges/34-dynamic-reducer.problem.ts(104,5): error TS2578: Unused '@ts-expect-error' directive.
119109
src/07-challenges/38-challenge-custom-jsx-element.problem.tsx(13,17): error TS2339: Property 'custom-element' does not exist on type 'JSX.IntrinsicElements'.

0 commit comments

Comments
 (0)