UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

19 lines (16 loc) 439 B
import { Workflows } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../../utils'; const patch = ( params: Workflows.PatchTaskRequest, basePath: string, jwt: string ) => { const api: Workflows.TasksApi = apiGenerator<Workflows.TasksApi>( Workflows, Workflows.TasksApi, basePath, jwt ); return errorDecoder<Workflows.RespTask>(() => api.patchTask(params)); }; export default patch;