Skip to content

Commit

Permalink
chore: release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
nistei committed Jun 15, 2021
1 parent 7b251f9 commit 8b73ad0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,24 @@ Airport.get(icao)
});
```


### Airport
```ts
import { Atis } from '@flybywiresim/api-client';

ATC.get(source)
.then(data => {
console.log(data);
}).catch(err => {
console.error(err);
});
```

- `source` is the selected datasource for the ATC.
Valid sources are:
- vatsim
- ivao

- `icao` is a string of the the airport ICAO code to search for.

### TELEX connection handling
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flybywiresim/api-client",
"version": "0.11.0",
"version": "0.12.0",
"description": "Client library for the FlyByWire Simulations API",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export declare class AtisResponse {

export declare class AirportResponse {
icao: string;
iata: string;
type: string;
name: string;
lat: number;
Expand Down

0 comments on commit 8b73ad0

Please sign in to comment.