@mocanvas/editor · function
declare function union<Key extends string, Config extends Record<string, Validatable<object>>>(key: Key, config: Config): UnionValidator<Key, Config>A discriminated union: pick the member validator by the value of key.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.