From 1c897648f7ee658ee3323ac525b8139122697dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Mon, 6 Jan 2025 23:50:51 +0100 Subject: [PATCH] feat: add Class interface import to classes service for type safety --- src/app/services/classes.service.ts | 1 + src/app/stores/classStore.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/services/classes.service.ts b/src/app/services/classes.service.ts index cb99414..1802afa 100644 --- a/src/app/services/classes.service.ts +++ b/src/app/services/classes.service.ts @@ -1,4 +1,5 @@ import { API_URLS } from "../constants/apiUrl.constant"; +import { Class } from "../interface/class"; import { axiosInstance } from "../lib/axios"; const getAll = () => axiosInstance.get(API_URLS.class.all); diff --git a/src/app/stores/classStore.ts b/src/app/stores/classStore.ts index 8b5c228..dab3646 100644 --- a/src/app/stores/classStore.ts +++ b/src/app/stores/classStore.ts @@ -1,5 +1,6 @@ import { create } from "zustand"; import { classesService } from "../services/classes.service"; +import { Class } from "../interface/class"; type ClassStoreState = { classes: Class[];