Preparing search index...
The search index is not available
Tango LowCode Builder
Tango LowCode Builder
@music163/tango-helpers
invariant
Function invariant
invariant
(
condition
,
message
)
:
void
如果条件为 false 则抛出错误
Parameters
condition
:
boolean
条件
message
:
string
|
(
(
)
=>
string
)
错误消息
Returns
void
See
https://github.com/alexreardon/tiny-invariant
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Tango LowCode Builder
Loading...
如果条件为 false 则抛出错误