type BridgeMemberDecoders<TState> = {
readonly [K in keyof TState]-?: (wire: unknown) => TState[K];
}; One decoder per state member, by wire name: it validates the member's wire value and returns the client value, and throws for an invalid one. A set change in a frame decodes only its member.