@mocanvas/editor · type
type OptionalPropertyKeys<Config extends Record<string, Validatable<unknown>>> = {
[K in keyof Config]: undefined extends TypeOf<Config[K]> ? K : never;
}[keyof Config]Keys of an object validator config whose validator also accepts undefined.
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.