Skip to content

Allow serializer.ts to handle branded types #5914

Allow serializer.ts to handle branded types

Allow serializer.ts to handle branded types #5914

Triggered via pull request March 12, 2025 17:37
Status Failure
Total duration 5m 2s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Preview
Process completed with exit code 1.
Test
Process completed with exit code 1.
Test
Type '{ 'use functions must return the result of next()': true; _types: { context: { fromServer5: string; }; sendContext: { toClient2: "toClient2"; }; }; context: { fromServer1: string; fromServer2: string; ... 4 more ...; toServer2: "toServer2"; }; sendContext: { ...; }; }' does not satisfy the constraint '{ sendContext: { toClient1: "Expected: literal string: toClient1, Actual: string"; toClient2: "Expected: literal string: toClient2, Actual: string"; }; context: { fromServer1: string; ... 5 more ...; fromServer5: string; }; _types: { ...; }; "use functions must return the result of next()": true; }'.
Test
Type '{ fromServer1: string; fromServer2: string; fromServer3: string; fromServer4: string; toServer1: "toServer1"; toServer2: "toServer2"; }' does not satisfy the constraint '{ fromServer1: string; fromServer2: string; fromServer3: string; toServer1: "Expected: literal string: toServer1, Actual: string"; fromServer4: string; toServer2: "Expected: literal string: toServer2, Actual: string"; }'.
Test
Type '{ 'use functions must return the result of next()': true; context: { fromClient1: string; fromClient2: string; fromClient3: string; fromClient4: string; fromClient5: string; toClient1: "toClient1"; }; sendContext: { ...; }; headers: HeadersInit; }' does not satisfy the constraint '{ headers: { 0: string; 1: string; }[]; sendContext: { toServer1: "Expected: literal string: toServer1, Actual: string"; toServer2: "Expected: literal string: toServer2, Actual: string"; }; context: { ...; }; "use functions must return the result of next()": true; }'.
Test
Type '{ 'use functions must return the result of next()': true; _types: { context: { fromServer4: string; }; sendContext: { toClient1: "toClient1"; }; }; context: { fromServer1: string; fromServer2: string; fromServer3: string; fromServer4: string; toServer1: "toServer1"; }; sendContext: { ...; }; }' does not satisfy the constraint '{ sendContext: { toClient1: "Expected: literal string: toClient1, Actual: string"; }; context: { fromServer1: string; fromServer2: string; fromServer3: string; toServer1: "Expected: literal string: toServer1, Actual: string"; fromServer4: string; }; _types: { ...; }; "use functions must return the result of next()":...'.
Test
Type '{ fromServer1: string; fromServer2: string; fromServer3: string; toServer1: "toServer1"; }' does not satisfy the constraint '{ fromServer1: string; fromServer2: string; fromServer3: string; toServer1: "Expected: literal string: toServer1, Actual: string"; }'.
Test
Type '{ 'use functions must return the result of next()': true; context: { fromClient1: string; fromClient2: string; fromClient3: string; fromClient4: string; }; sendContext: { toServer1: "toServer1"; }; headers: HeadersInit; }' does not satisfy the constraint '{ headers: { 0: string; 1: string; }[]; sendContext: { toServer1: "Expected: literal string: toServer1, Actual: string"; }; context: { fromClient1: string; fromClient2: string; fromClient3: string; fromClient4: string; }; "use functions must return the result of next()": true; }'.