Olivier Massot 4 месяцев назад
Родитель
Сommit
5ac2970cde

+ 2 - 1
components/Form/Parameter/EducationTiming.vue

@@ -20,5 +20,6 @@ defineProps<{
   entity: EducationTiming
 }>()
 
-const getAsserts = (key: string) => getAssertUtils(EducationTiming.getAsserts(), key)
+const getAsserts = (key: string) =>
+  getAssertUtils(EducationTiming.getAsserts(), key)
 </script>

+ 2 - 1
components/Form/Parameter/ResidenceArea.vue

@@ -21,5 +21,6 @@ defineProps<{
   entity: ResidenceArea
 }>()
 
-const getAsserts = (key: string) => getAssertUtils(ResidenceArea.getAsserts(), key)
+const getAsserts = (key: string) =>
+  getAssertUtils(ResidenceArea.getAsserts(), key)
 </script>

+ 2 - 1
pages/freemium/organization.vue

@@ -138,7 +138,8 @@ onUnmounted(() => {
   useRepo(Country).flush()
 })
 
-const getAsserts = (key: string) => getAssertUtils(Organization.getAsserts(), key)
+const getAsserts = (key: string) =>
+  getAssertUtils(Organization.getAsserts(), key)
 </script>
 
 <style scoped lang="scss">

+ 4 - 3
services/data/enumManager.ts

@@ -2,8 +2,7 @@ import type { VueI18n } from 'vue-i18n'
 import type ApiRequestService from './apiRequestService'
 import UrlUtils from '~/services/utils/urlUtils'
 import HydraNormalizer from '~/services/data/normalizer/hydraNormalizer'
-import type { AnyJson, Collection, Enum } from '~/types/data.d'
-import type { EnumChoice } from '~/types/interfaces'
+import type { Collection, Enum } from '~/types/data.d'
 
 class EnumManager {
   private apiRequestService: ApiRequestService
@@ -20,7 +19,9 @@ class EnumManager {
     const response = await this.apiRequestService.get(url)
 
     // @ts-expect-error J'ignore pourquoi, mais response ici est bien de type AnyJson, et non Response...
-    const { data } = HydraNormalizer.denormalize(response) as { data: Collection<Record<string>> }
+    const { data } = HydraNormalizer.denormalize(response) as {
+      data: Collection<Record<string>>
+    }
 
     const enum_: Enum = []
     for (const key in data.items) {

+ 1 - 4
types/data.d.ts

@@ -1,9 +1,6 @@
 import type ApiResource from '~/models/ApiResource'
 import type { EnumChoice } from '~/types/interfaces'
-import type {
-  Query as PiniaOrmQuery,
-  Collection as PiniaOrmCollection,
-} from 'pinia-orm'
+import type { Query as PiniaOrmQuery } from 'pinia-orm'
 
 type AnyJson = Record<string, unknown>