ClaimConvertable <ClaimType>
Index
Methods
Methods
optionalclaim
Converts the value of the given claim, within its container, to the requested object type.
Type parameters
- ClaimContainer: HasClaims<ClaimType>
Parameters
claim: String
inType: ClaimContainer
optionalfrom: any
Returns ThisType<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
Dateobject, or to a URL object.