fix: fix typerror on stations object

This commit is contained in:
SennayT
2026-05-25 09:52:52 +03:00
parent a69031ccc1
commit 671d24b81d

View File

@@ -1,12 +1,13 @@
import type { IStation } from "../types";
// import type { IStation } from "../types";
import { api } from "../utils/api";
import type { Passenger } from "@edr/types";
export const stationsService = {
list: async (): Promise<IStation[]> => {
list: async (): Promise<Passenger.IStation[]> => {
const { data } = await api.get("/stations");
return data.data;
},
get: async (id: string): Promise<IStation> => {
get: async (id: string): Promise<Passenger.IStation> => {
const { data } = await api.get(`/stations/${id}`);
return data.data;
},