isCredentialType(obj): obj is VerifiableCredentialType

Checks if an object is of type VerifiableCredential or EncryptedVerifiableCredential.

Parameters

ParameterTypeDescription
objanyThe object to check.

Returns

obj is VerifiableCredentialType

true if the object is of type VerifiableCredential or EncryptedVerifiableCredential, otherwise false.

Defined in

verifiableCredentialsSDK/types/utils.ts:35