Skip to content

agriculturegovau/awe-ts-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing these bindings

To update this, copy .env.example to .env.

Then run

npm i
npm run generate

This will pull specs from the API and save them.

Using these bindings

To use the types;

import {profileComponents} from 'awe-ts-bindings';
type EstablishmentDto = profileComponents["schemas"]["EstablishmentDto"];
async function establishment_data(auth_token) : Promise<Array<EstablishmentDto>>{