@salesforce/ts-types
    Preparing search index...

    Function assert

    • Asserts that a given condition is true, or raises an error otherwise.

      Parameters

      • condition: boolean

        The condition to test.

      • Optionalmessage: string

        The error message to use if the condition is false.

      Returns asserts condition

      AssertionFailedError If the assertion failed.