Skip to main content

ClaimConvertable <ClaimType>

Allows claims contained within a HasClaims container to be converted to different object types.

For example, this can be used to convert a string value encoded as an ISO8601 date string to a Date object, or to a URL object.

Index

Methods

Methods

optionalclaim

  • claim<ClaimContainer>(claim: String, inType: ClaimContainer, from?: any): ThisType<ClaimConvertable<ClaimType>>
  • Converts the value of the given claim, within its container, to the requested object type.


    Type parameters

    Parameters

    • claim: String
    • inType: ClaimContainer
    • optionalfrom: any

    Returns ThisType<ClaimConvertable<ClaimType>>

Page Options