UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

8 lines (7 loc) 330 B
import { Models } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../../utils'; const listByLanguage = (params, basePath, jwt) => { const api = apiGenerator(Models, Models.ModelsApi, basePath, jwt); return errorDecoder(() => api.listModelsByLanguage(params)); }; export default listByLanguage;