Skip to main content

@lexical/internal/invariant

Functions​

invariant()​

invariant(cond?, message?, ...args): asserts cond

Defined in: packages/lexical-internal/src/invariant.ts:19

Copyright (c) Meta Platforms, Inc. and affiliates.

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

Parameters​

cond?​

boolean

message?​

string = 'Internal Lexical error: invariant() called without a message'

args​

...string[]

Returns​

asserts cond