@mocanvas/editor · function

validateCustomRecordInfos

declare function validateCustomRecordInfos(records: Readonly<Record<string, CustomRecordInfo<string>>> | undefined): void

Check a set of custom record declarations before anything is built from them.

Two types with the same name, or a name that collides with a built-in record type, produce a store where one silently shadows the other — a bug that only shows up as missing data. Better to refuse at declaration time.

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.