diff --git a/packages/core/src/modules/credentials/CredentialsModuleOptions.ts b/packages/core/src/modules/credentials/CredentialsModuleOptions.ts index e6bb1902ed..568f0b0773 100644 --- a/packages/core/src/modules/credentials/CredentialsModuleOptions.ts +++ b/packages/core/src/modules/credentials/CredentialsModuleOptions.ts @@ -16,10 +16,7 @@ export type FindCredentialMessageReturn = Retur /** * Get the supported protocol versions based on the provided credential services. */ -export type ProtocolVersionType< - CFs extends CredentialFormat[], - CSs extends CredentialService[] -> = CSs[number]['version'] +export type ProtocolVersionType = CSs[number]['version'] /** * Get the service map for usage in the credentials module. Will return a type mapping of protocol version to service. @@ -51,7 +48,7 @@ export interface ProposeCredentialOptions< CSs extends CredentialService[] = CredentialService[] > extends BaseOptions { connectionId: string - protocolVersion: ProtocolVersionType + protocolVersion: ProtocolVersionType credentialFormats: CredentialFormatPayload } @@ -80,7 +77,7 @@ export interface CreateOfferOptions< CFs extends CredentialFormat[] = CredentialFormat[], CSs extends CredentialService[] = CredentialService[] > extends BaseOptions { - protocolVersion: ProtocolVersionType + protocolVersion: ProtocolVersionType credentialFormats: CredentialFormatPayload }