UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

15 lines (12 loc) 428 B
import { Systems } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const deleteSystem = (systemId: string, basePath: string, jwt: string) => { const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>( Systems, Systems.SystemsApi, basePath, jwt ); return errorDecoder<Systems.RespBasic>(() => api.deleteSystem({ systemId })); }; export default deleteSystem;