@mocanvas/editor · function

warnOnce

declare function warnOnce(key: string, message: string): void

Say something, once, about a mistake the library can see but cannot fix.

Development only: a shipped bundle should not pay for the string, and a production log is not where this reaches anyone. process may not exist at all in a raw-ESM browser page, hence the guard rather than a bare read.

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.