Matched strongly typed #974
Annotations
5 errors and 1 warning
Run tests:
src/guards/routes.spec-d.ts#L49
TypeCheckError: Type '"parentA" | "childA"' does not satisfy the constraint '"Expected literal string parentA, Actual literal string parentB" | "Expected literal string childA, Actual literal string parentB"'.
Type '"parentA"' is not assignable to type '"Expected literal string parentA, Actual literal string parentB" | "Expected literal string childA, Actual literal string parentB"'.
❯ src/guards/routes.spec-d.ts:49:53
|
Run tests:
src/guards/routes.spec-d.ts#L53
TypeCheckError: Type '"parentB"' does not satisfy the constraint '"Expected literal string parentB, Actual literal string parentA" | "Expected literal string parentB, Actual literal string childA"'.
❯ src/guards/routes.spec-d.ts:53:53
|
Run tests:
src/guards/routes.spec-d.ts#L57
TypeCheckError: Type '"parentA" | "childA"' does not satisfy the constraint '"Expected literal string parentA, Actual literal string parentB" | "Expected literal string childA, Actual literal string parentB"'.
Type '"parentA"' is not assignable to type '"Expected literal string parentA, Actual literal string parentB" | "Expected literal string childA, Actual literal string parentB"'.
❯ src/guards/routes.spec-d.ts:57:53
|
Run tests:
src/types/routeWithParams.spec-d.ts#L18
TypeCheckError: Type 'Route<"parentA", Host<"", {}>, Path<"/parentA/[paramA]", {}>, Query<"", {}>, Hash<"">, Record<string, unknown>, Record<string, Param>, CreateRouteOptions<...>, [...]>' does not satisfy the constraint '{ meta { [x string] unknown; }; name "parentA"; hash { value "Expected literal string , Actual string" | "Expected literal string , Actual undefined"; }; state { [x string] Param; }; ... 7 more ...; depth number; }'.
The types of 'hash.value' are incompatible between these types.
Type '""' is not assignable to type '"Expected literal string , Actual string" | "Expected literal string , Actual undefined"'.
❯ src/types/routeWithParams.spec-d.ts:18:40
|
Run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading