Skip to content

Commit d24dd68

Browse files
committed
Updated to latest TS
1 parent cfc6405 commit d24dd68

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
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
@@ -11,7 +11,7 @@
1111
"jsdom": "^21.1.1",
1212
"prettier": "^2.8.7",
1313
"ts-toolbelt": "^9.6.0",
14-
"typescript": "^5.0.3",
14+
"typescript": "^5.1.3",
1515
"vite-tsconfig-paths": "^4.0.7",
1616
"vitest": "^0.31.1"
1717
},
@@ -123,4 +123,4 @@
123123
"express": "^4.18.1",
124124
"zod": "^3.17.10"
125125
}
126-
}
126+
}

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,29 @@ src/03-template-literals/16-unions-in-template-literals.problem.ts(11,5): error
3030
src/03-template-literals/17-splitting-strings.problem.ts(12,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3131
src/03-template-literals/18-template-literals-in-object-keys.problem.ts(9,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3232
src/03-template-literals/19-uppercase-object.problem.ts(9,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
33-
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(6,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3433
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(6,16): error TS2315: Type 'ReturnWhatIPassIn' is not generic.
35-
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(7,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3634
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(7,16): error TS2315: Type 'ReturnWhatIPassIn' is not generic.
37-
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(8,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
3835
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(8,16): error TS2315: Type 'ReturnWhatIPassIn' is not generic.
39-
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(9,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
4036
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(9,16): error TS2315: Type 'ReturnWhatIPassIn' is not generic.
41-
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(10,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
4237
src/03.5-type-helpers-pattern/20-type-helpers-pattern.problem.ts(10,16): error TS2315: Type 'ReturnWhatIPassIn' is not generic.
43-
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(6,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
4438
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(6,16): error TS2315: Type 'Maybe' is not generic.
45-
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(7,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
4639
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(7,16): error TS2315: Type 'Maybe' is not generic.
47-
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(8,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
4840
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(8,16): error TS2315: Type 'Maybe' is not generic.
49-
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(9,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5041
src/03.5-type-helpers-pattern/20.1-maybe.problem.ts(9,16): error TS2315: Type 'Maybe' is not generic.
5142
src/03.5-type-helpers-pattern/20.2-constraints.problem.ts(3,35): error TS2322: Type 'TRoute' is not assignable to type 'string | number | bigint | boolean | null | undefined'.
5243
src/03.5-type-helpers-pattern/20.2-constraints.problem.ts(10,3): error TS2578: Unused '@ts-expect-error' directive.
5344
src/03.5-type-helpers-pattern/20.2-constraints.problem.ts(12,3): error TS2578: Unused '@ts-expect-error' directive.
54-
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(10,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5545
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(11,7): error TS2315: Type 'CreateDataShape' is not generic.
56-
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(19,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5746
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(20,7): error TS2315: Type 'CreateDataShape' is not generic.
58-
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(28,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
5947
src/03.5-type-helpers-pattern/20.3-multiple.problem.ts(29,7): error TS2315: Type 'CreateDataShape' is not generic.
60-
src/03.5-type-helpers-pattern/20.4-defaults.problem.ts(10,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
6148
src/03.5-type-helpers-pattern/20.4-defaults.problem.ts(11,7): error TS2314: Generic type 'CreateDataShape' requires 2 type argument(s).
6249
src/03.5-type-helpers-pattern/20.5-function-constraints.problem.ts(4,22): error TS2344: Type 'T' does not satisfy the constraint '(...args: any) => any'.
6350
src/03.5-type-helpers-pattern/20.5-function-constraints.problem.ts(5,27): error TS2344: Type 'T' does not satisfy the constraint '(...args: any) => any'.
6451
src/03.5-type-helpers-pattern/20.6-not-undefined-or-null-constraint.problem.ts(4,3): error TS2578: Unused '@ts-expect-error' directive.
6552
src/03.5-type-helpers-pattern/20.6-not-undefined-or-null-constraint.problem.ts(6,3): error TS2578: Unused '@ts-expect-error' directive.
6653
src/03.5-type-helpers-pattern/20.7-non-empty-array.problem.ts(3,34): error TS2315: Type 'NonEmptyArray' is not generic.
6754
src/03.5-type-helpers-pattern/20.7-non-empty-array.problem.ts(8,1): error TS2578: Unused '@ts-expect-error' directive.
68-
src/04-conditional-types-and-infer/21-conditional-types.problem.ts(6,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
6955
src/04-conditional-types-and-infer/21-conditional-types.problem.ts(6,16): error TS2315: Type 'YouSayGoodbyeAndISayHello' is not generic.
70-
src/04-conditional-types-and-infer/21-conditional-types.problem.ts(7,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
7156
src/04-conditional-types-and-infer/21-conditional-types.problem.ts(7,16): error TS2315: Type 'YouSayGoodbyeAndISayHello' is not generic.
7257
src/04-conditional-types-and-infer/22-returning-never.problem.ts(8,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
7358
src/04-conditional-types-and-infer/22-returning-never.problem.ts(9,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
@@ -81,7 +66,6 @@ src/04-conditional-types-and-infer/25-template-literal-value-extraction.problem.
8166
src/04-conditional-types-and-infer/25-template-literal-value-extraction.problem.ts(16,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
8267
src/04-conditional-types-and-infer/25-template-literal-value-extraction.problem.ts(17,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
8368
src/04-conditional-types-and-infer/25-template-literal-value-extraction.problem.ts(18,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
84-
src/04-conditional-types-and-infer/26-get-result-from-async-function.problem.ts(17,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
8569
src/04-conditional-types-and-infer/26-get-result-from-async-function.problem.ts(18,7): error TS2315: Type 'InferPropsFromServerSideFunction' is not generic.
8670
src/04-conditional-types-and-infer/27-infer-in-union-types.problem.ts(16,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
8771
src/04-conditional-types-and-infer/27-infer-in-union-types.problem.ts(17,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
@@ -96,9 +80,7 @@ src/05-key-remapping/33-discriminated-union-to-object.problem.ts(19,5): error TS
9680
src/05-key-remapping/34-object-to-union-of-tuples.problem.ts(15,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9781
src/05-key-remapping/35-object-to-union-of-template-literals.problem.ts(13,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
9882
src/05-key-remapping/36-discriminated-union-to-union.problem.ts(21,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
99-
src/06-challenges/37-get-dynamic-path-params.problem.ts(10,10): error TS2344: Type 'false' does not satisfy the constraint 'true'.
10083
src/06-challenges/37-get-dynamic-path-params.problem.ts(10,16): error TS2315: Type 'ExtractPathParams' is not generic.
101-
src/06-challenges/37-get-dynamic-path-params.problem.ts(12,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
10284
src/06-challenges/37-get-dynamic-path-params.problem.ts(13,7): error TS2315: Type 'ExtractPathParams' is not generic.
10385
src/06-challenges/38-mutually-exclusive-properties.problem.ts(19,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
10486
src/06-challenges/39-discriminated-union-with-unique-values-to-object.problem.ts(19,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.

0 commit comments

Comments
 (0)