/
neveisya
/
react-app
Обзор
Документация
Войти
/
neveisya
/
react-app
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/remote-methods/baseMethodsDescription.ts
11 строк
422 B
sasha
222
25 авг 2024, 07:27
25 авг 2024, 07:27
09ad92c
Код
Авторство
О чём код?
import type Article from '@/common-interfaces/Article'; export interface Methods extends Record<string, Function> { getData: (type: number) => Promise<{ type: number; date: Date; value: number }>; getAccount: () => Promise<{ user: string; id: number }>; getArticles: () => Promise<Article[]>; } export const methodNames = ['getData', 'getAccount', 'getArticles']; export const baseUrl = 'http://localhost:5173/';