feat: add Class interface import to classes service for type safety

This commit is contained in:
Rémi 2025-01-06 23:50:51 +01:00
parent 5bfc969f6a
commit 1c897648f7
2 changed files with 2 additions and 0 deletions

View File

@ -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<Class[]>(API_URLS.class.all);

View File

@ -1,5 +1,6 @@
import { create } from "zustand";
import { classesService } from "../services/classes.service";
import { Class } from "../interface/class";
type ClassStoreState = {
classes: Class[];