Upgrade dependencies #30
Annotations
9 errors and 1 warning
check
Type '{ sitesCanDelete: never[]; sitesCanEdit: never[]; sitesCanVisit: never[]; }' is not assignable to type 'AnonymousPrivileges'.
|
check
Type '{ sitesCanEdit: never[]; sitesCanVisit: never[]; }' is not assignable to type 'AnonymousPrivileges'.
|
check
Object literal may only specify known properties, and 'sitesCanDelete' does not exist in type 'AnonymousPrivileges'.
|
check
Object literal may only specify known properties, and 'sitesCanEdit' does not exist in type 'AnonymousPrivileges'.
|
check
Type '\"a\"' is not assignable to type 'TKey'.
|
check
Type '"a"' is not assignable to type 'TKey'.
|
all.test.ts > tsc > Should have the correct TypeScript errors:
scripts/tests/all.test.ts#L20
Error: Snapshot `tsc > Should have the correct TypeScript errors 1` mismatched
- Expected
+ Received
@@ -71,31 +71,29 @@
src/04-generics-advanced/20.7-working-around-partial-inference.problem.ts(43,5): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/21-what-is-a-function-overload.problem.ts(13,22): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/21-what-is-a-function-overload.problem.ts(13,52): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/22-function-overloads-vs-conditional-types.problem.ts(15,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/22-function-overloads-vs-conditional-types.problem.ts(23,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
- src/05-function-overloads/23-function-overload-implementation.problem.ts(22,9): error TS2322: Type '{ sitesCanDelete: never[]; sitesCanEdit: never[]; sitesCanVisit: never[]; }' is not assignable to type 'AnonymousPrivileges'.
- Object literal may only specify known properties, and 'sitesCanDelete' does not exist in type 'AnonymousPrivileges'.
- src/05-function-overloads/23-function-overload-implementation.problem.ts(28,9): error TS2322: Type '{ sitesCanEdit: never[]; sitesCanVisit: never[]; }' is not assignable to type 'AnonymousPrivileges'.
- Object literal may only specify known properties, and 'sitesCanEdit' does not exist in type 'AnonymousPrivileges'.
+ src/05-function-overloads/23-function-overload-implementation.problem.ts(22,9): error TS2353: Object literal may only specify known properties, and 'sitesCanDelete' does not exist in type 'AnonymousPrivileges'.
+ src/05-function-overloads/23-function-overload-implementation.problem.ts(28,9): error TS2353: Object literal may only specify known properties, and 'sitesCanEdit' does not exist in type 'AnonymousPrivileges'.
src/05-function-overloads/23-function-overload-implementation.problem.ts(42,49): error TS2769: No overload matches this call.
- Overload 1 of 2, '(role: \"admin\"): AdminPrivileges', gave the following error.
- Argument of type '\"anonymous\"' is not assignable to parameter of type '\"admin\"'.
- Overload 2 of 2, '(role: \"user\"): UserPrivileges', gave the following error.
- Argument of type '\"anonymous\"' is not assignable to parameter of type '\"user\"'.
+ Overload 1 of 2, '(role: "admin"): AdminPrivileges', gave the following error.
+ Argument of type '"anonymous"' is not assignable to parameter of type '"admin"'.
+ Overload 2 of 2, '(role: "user"): UserPrivileges', gave the following error.
+ Argument of type '"anonymous"' is not assignable to parameter of type '"user"'.
src/05-function-overloads/23-function-overload-implementation.problem.ts(47,12): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/24-function-overloads-vs-union-types.problem.ts(8,10): error TS18046: 'generator' is of type 'unknown'.
src/05-function-overloads/24-function-overloads-vs-union-types.problem.ts(18,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/24-function-overloads-vs-union-types.problem.ts(26,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/25-generics-in-function-overloads.problem.ts(14,23): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/25-generics-in-function-overloads.problem.ts(23,12): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/25-generics-in-function-overloads.problem.ts(24,12): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/25-generics-in-function-overloads.problem.ts(25,12): error TS2344: Type 'false' does not satisfy the constraint 'true'.
src/05-function-overloads/26-document.queryselector-example.problem.ts(15,10): error TS2344: Type 'false' does not satisfy the const
|
all.test.ts > vitest > Should have the correct Vitest errors:
scripts/tests/all.test.ts#L41
Error: Snapshot `vitest > Should have the correct Vitest errors 1` mismatched
- Expected
+ Received
@@ -1,23 +1,23 @@
{
"success": false,
"testResults": [
{
"assertionResults": [],
- "message": "No test found in suite src/01-generics-intro/00-intro.explainer.ts",
+ "message": "",
"name": "src/01-generics-intro/00-intro.explainer.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/01-generics-intro/01-return-what-i-pass-in.problem.ts",
+ "message": "",
"name": "src/01-generics-intro/01-return-what-i-pass-in.problem.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/01-generics-intro/01-return-what-i-pass-in.solution.ts",
+ "message": "",
"name": "src/01-generics-intro/01-return-what-i-pass-in.solution.ts",
"status": "passed",
},
{
"assertionResults": [
@@ -147,11 +147,11 @@
"name": "src/01-generics-intro/04-multiple-generics-per-object.solution.3.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/01-generics-intro/04.5-excalidraw-sum-function.explainer.ts",
+ "message": "",
"name": "src/01-generics-intro/04.5-excalidraw-sum-function.explainer.ts",
"status": "passed",
},
{
"assertionResults": [
@@ -253,35 +253,35 @@
"name": "src/01-generics-intro/06-generic-mapper.solution.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/01-generics-intro/06.5-orta-generics.explainer.ts",
+ "message": "",
"name": "src/01-generics-intro/06.5-orta-generics.explainer.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/07-create-new-set.problem.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/07-create-new-set.problem.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/07-create-new-set.solution.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/07-create-new-set.solution.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/08-default-generics.problem.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/08-default-generics.problem.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/08-default-generics.solution.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/08-default-generics.solution.ts",
"status": "passed",
},
{
"assertionResults": [
@@ -379,17 +379,17 @@
"name": "src/02-passing-type-arguments/11-data-fetcher.solution.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/11.1-passing-type-arguments-in-cal.com.explainer.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/11.1-passing-type-arguments-in-cal.com.explainer.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite src/02-passing-type-arguments/11.2-mark-erikson-story.explainer.ts",
+ "message": "",
"name": "src/02-passing-type-arguments/11.2-mark-erikson-story.explainer.ts",
"status": "passed",
},
{
"assertionResults": [
@@ -622,41 +622,41 @@
"name": "src/03-art-of-type-arguments/14-safe-function.solution.2.ts",
"status": "passed",
},
{
"assertionResults": [],
- "message": "No test found in suite
|
check
Process completed with exit code 1.
|
check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|