diff --git a/apps/api/src/services/property/interfaces/interfaces.ts b/apps/api/src/services/property/interfaces/interfaces.ts new file mode 100644 index 000000000..be9bc530d --- /dev/null +++ b/apps/api/src/services/property/interfaces/interfaces.ts @@ -0,0 +1 @@ +export type PropertyValue = boolean | object | string | string[]; diff --git a/apps/api/src/services/property/property.service.ts b/apps/api/src/services/property/property.service.ts index 3ed435a89..212635f49 100644 --- a/apps/api/src/services/property/property.service.ts +++ b/apps/api/src/services/property/property.service.ts @@ -6,7 +6,7 @@ import { import { Injectable } from '@nestjs/common'; -type Value = boolean | object | string | string[]; +import { PropertyValue } from './interfaces/interfaces'; @Injectable() export class PropertyService { @@ -20,7 +20,7 @@ export class PropertyService { public async get() { const response: { - [key: string]: Value; + [key: string]: PropertyValue; } = { [PROPERTY_CURRENCIES]: [] }; @@ -40,7 +40,7 @@ export class PropertyService { return response; } - public async getByKey(aKey: string) { + public async getByKey(aKey: string) { const properties = await this.get(); return properties[aKey] as TValue; }