Browse Source

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
streamline-attempt
Matthew Raymer 1 month ago
parent
commit
e2fab0a3ac
  1. 3
      src/interfaces/common.ts

3
src/interfaces/common.ts

@ -2,6 +2,9 @@
export interface GenericVerifiableCredential { export interface GenericVerifiableCredential {
"@context"?: string; "@context"?: string;
"@type": string; "@type": string;
name?: string;
description?: string;
agent?: string;
[key: string]: unknown; [key: string]: unknown;
} }

Loading…
Cancel
Save