Interface InvariantOptions<Condition>

Type Parameters

  • Condition


  • InvariantOptions


message?: string | ((condition: Condition) => string)

Error message to display after prefix. Can be a string or a function that takes the condition as its first argument.

prefix: string

The prefix for errors, defaults to Invariant Error

stripMessage: boolean

Should the message be stripped? defaults to true in production.

Generated using TypeDoc