A ComplexBus with only a subset of its fields.
import * as io from "@prelude-io/core";const Pet = io.Complex("NestedBus", { species: io.string, name: io.string,});// PartialPet is a new ComplexBus with only the "name" fieldconst PartialPet = io.Partial(Pet, ["name"]); Copy
import * as io from "@prelude-io/core";const Pet = io.Complex("NestedBus", { species: io.string, name: io.string,});// PartialPet is a new ComplexBus with only the "name" fieldconst PartialPet = io.Partial(Pet, ["name"]);
The Complex bus to base the partial of
The fields to include in the partial
An alias for this bus. Defaults to Partial(ComplexName[field, field, ...])
Partial(ComplexName[field, field, ...])
The partial bus
Generated using TypeDoc
A ComplexBus with only a subset of its fields.
Example