@mocanvas/editor · type
type ObjectValidatorType<Config extends Record<string, Validatable<unknown>>> = {
[K in Exclude<keyof Config, OptionalPropertyKeys<Config>>]: TypeOf<Config[K]>;
} & {
[K in OptionalPropertyKeys<Config>]?: TypeOf<Config[K]>;
}The object type a T.object({...}) config describes.
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.