@lexical/internal/createError
Functions
createError()
createError(
message, ...args):Error
Defined in: packages/lexical-internal/src/createError.ts:16
Construct an error without throwing it. Like invariant, the message must be a literal with %s placeholders so builds can replace it with an error code. The source implementation also works without the build transform.
Parameters
message
string
args
...string[]