By including the kind of the block as the type of the frame, we remove its parametrization on block kind yet retain precise type information about which parameter is present in the frame.
const standalone_frame: StandaloneFrame = { type: kind, data: frame }; Copy
const standalone_frame: StandaloneFrame = { type: kind, data: frame };
By including the kind of the block as the type of the frame, we remove its parametrization on block kind yet retain precise type information about which parameter is present in the frame.