Functions
isCredentialType
isCredentialType(
obj
):obj is VerifiableCredentialType
Checks if an object is of type VerifiableCredential
or EncryptedVerifiableCredential
.
Parameters
Parameter | Type | Description |
---|---|---|
obj | any | The object to check. |
Returns
obj is VerifiableCredentialType
true
if the object is of type VerifiableCredential
or EncryptedVerifiableCredential
, otherwise false
.