From 360f00c07388c38ac4299abae8061f737a06935d Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Mon, 23 Jun 2025 10:28:04 +0000 Subject: [PATCH] feat: enhance GenericVerifiableCredential interface with explicit optional properties - Add name, description, and agent as optional properties to GenericVerifiableCredential - Improve type safety and IntelliSense for common claim properties - Maintain backward compatibility with existing code - Reduce need for type assertions when accessing claim properties --- src/interfaces/common.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interfaces/common.ts b/src/interfaces/common.ts index cce40568..21b130bc 100644 --- a/src/interfaces/common.ts +++ b/src/interfaces/common.ts @@ -2,6 +2,9 @@ export interface GenericVerifiableCredential { "@context"?: string; "@type": string; + name?: string; + description?: string; + agent?: string; [key: string]: unknown; }