@mocanvas/mocanvas · function
declare function readEnum<T extends string>(props: unknown, key: string, allowed: readonly T[], fallback: T): TA string prop constrained to a known set; anything else falls back.
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.