UNPKG

tesla-fleet-api

Version:

A library for the [Tesla Fleet API](https://developer.tesla.com/docs/fleet-api), and the third parties services [Teslemetry](https://teslemetry.com/docs/getting-started/api) and [Tessie](https://developer.tessie.com/docs/tesla-api-comparison), which provi

10 lines 284 B
export const validate = async (body) => { if (body?.error) { return Promise.reject(body.error); } if (body?.response?.result == false) { return Promise.reject(body.response.reason); } return Promise.resolve(); }; //# sourceMappingURL=helpers.js.map