• Preparing search index...
  • The search index is not available
@salesforce/ts-types
  • @salesforce/ts-types
  • asJsonMap

Function asJsonMap

  • asJsonMap(value): Optional<JsonMap>
  • Narrows an AnyJson value to a JsonMap if it is type-compatible, or returns undefined otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    Returns Optional<JsonMap>

    • Defined in narrowing/as.ts:199
  • asJsonMap(value, defaultValue): JsonMap
  • Narrows an AnyJson value to a JsonMap if it is type-compatible, or returns the provided default otherwise.

    Parameters

    • value: Optional<AnyJson>

      The value to test.

    • defaultValue: JsonMap

      The default to return if value was undefined or of the incorrect type.

    Returns JsonMap

    • Defined in narrowing/as.ts:206

Settings

Member Visibility
@salesforce/ts-types
  • Loading...