@allbin/mobilix-api-client
v0.42.1
Published
Client for mobilix-api
Downloads
92
Readme
mobilix-api-client
Example use
const client = MobilixApiClient({
baseUrl: 'https://api.mobilix.dev.allbin.se',
token: () => getTokenPromise(),
})
const entityTypes = await client.entityTypes.list();
generate new types from mobilix-api
Adjust path to api.d.ts
to fit your own machine
cat ../mobilix-api/src/types/api.d.ts | sed -e 's/^type/export type/g' > src/api.ts
npm run lint:fix