@mocanvas/editor · function

literal

declare function literal<const T extends string | number | boolean | null>(expected: T): Validator<T>

Exactly one value, compared with ===.

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.