(value: Record<string, unknown>, label: string)
| 416 | } |
| 417 | |
| 418 | function decodeCommitted(value: Record<string, unknown>, label: string): ConnectionEffectCommitted { |
| 419 | if (value.kind !== 'committed') throw invalidProtocolFrame(`Invalid ${label}`); |
| 420 | return { |
| 421 | kind: 'committed', |
| 422 | catalogRevision: requireCount(value.catalogRevision, 'connection catalog revision'), |
| 423 | connection: decodeDomain(() => decodeConnectionVersionBasis(value.connection)), |
| 424 | }; |
| 425 | } |
| 426 | |
| 427 | function decodeNonEffectResult( |
| 428 | value: Record<string, unknown>, |
no test coverage detected