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

    Function assertJsonMap

    • Narrows an AnyJson value to a JsonMap if it is type-compatible, or raises an error otherwise.

      Parameters

      • value: Optional<AnyJson>

        The value to test.

      • Optionalmessage: string

        The error message to use if value is not type-compatible.

      Returns asserts value is JsonMap

      AssertionFailedError If the value was undefined.