fix: consolidate KeyMeta interface and improve type safety
- Remove duplicate KeyMeta interface from crypto/vc/index.ts - Import KeyMeta from common.ts as single source of truth - Add missing fields to KeyMeta interface (identity, passkeyCredIdHex) - Remove unused ErrorResponse interface from endorserServer.ts - Fix import path for KeyMeta in crypto/vc/index.ts This change resolves type compatibility issues and ensures consistent KeyMeta type usage across the codebase.
This commit is contained in:
@@ -147,14 +147,6 @@ export function isEmptyOrHiddenDid(did?: string): boolean {
|
||||
return !did || did === HIDDEN_DID;
|
||||
}
|
||||
|
||||
// Add these interfaces at the top of the file
|
||||
interface ErrorResponse {
|
||||
error?: string;
|
||||
message?: string;
|
||||
status?: number;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively tests strings within an object/array against a test function
|
||||
* @param {Function} func - Test function to apply to strings
|
||||
|
||||
Reference in New Issue
Block a user