From ae0ba5283e42c98bd6b29502725fa7b90b8169ec Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Thu, 31 Oct 2024 12:34:47 +0530 Subject: [PATCH] nit Signed-off-by: Timo Glastra --- packages/ssi-types/src/mapper/credential-mapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ssi-types/src/mapper/credential-mapper.ts b/packages/ssi-types/src/mapper/credential-mapper.ts index 968904290..7a3f145bf 100644 --- a/packages/ssi-types/src/mapper/credential-mapper.ts +++ b/packages/ssi-types/src/mapper/credential-mapper.ts @@ -358,7 +358,7 @@ export class CredentialMapper { return ObjectUtils.isString(original) && !original.startsWith('ey') && ObjectUtils.isBase64(original) } - public static isW3cCredential(credential: ICredential | SdJwtDecodedVerifiableCredential): credential is ICredential { + public static isW3cCredential(credential: ICredential | SdJwtDecodedVerifiableCredential | MdocDocument): credential is ICredential { return typeof credential === 'object' && '@context' in credential && ((credential as ICredential).type?.includes('VerifiableCredential') || false) }