diff --git a/src/utils/validations/index.ts b/src/utils/validations/index.ts index 3c3be8e..bc4072d 100644 --- a/src/utils/validations/index.ts +++ b/src/utils/validations/index.ts @@ -883,7 +883,7 @@ function isStringKeyValueMap(obj: any): obj is StringKeyValueMapType { } for (const key in obj) { - if (typeof key !== 'string' || typeof obj[key] !== 'string') { + if (typeof key !== 'string' || (typeof obj[key] !== 'object' && typeof obj[key] !== 'string')) { return false; } } diff --git a/src/vault/types/index.ts b/src/vault/types/index.ts index e4f46e1..5d5561f 100644 --- a/src/vault/types/index.ts +++ b/src/vault/types/index.ts @@ -35,7 +35,7 @@ export interface queryResponseType { } export interface StringKeyValueMapType { - [key: string]: string; + [key: string]: object | string; } export interface tokenizeRequestType {