@mocanvas/editor · function

dict

declare function dict<K extends string, V>(key: Validatable<K>, value: Validatable<V>): DictValidator<K, V>

An object used as a lookup table: any key, every value matching value.

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.