State converter that copies matching properties from the input state into the output state. The input type must extend the output type (structural subtyping). Example: {a: 1, b: 2, c: 3} → {a: 1, c: 3} when OUT_STATE only has a and c.
{a: 1, b: 2, c: 3}
{a: 1, c: 3}
OUT_STATE
a
c
input state wrapper
a shallow copy of the input spread into OUT_STATE
State converter that copies matching properties from the input state into the output state. The input type must extend the output type (structural subtyping). Example:
{a: 1, b: 2, c: 3}→{a: 1, c: 3}whenOUT_STATEonly hasaandc.