Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWowra committed Apr 9, 2023
2 parents 4bb34c1 + 2a39532 commit c797894
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 221 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openSenseMap Client

Based on API version: `v10.2.3`
Based on API version: `v11.0.0`

[![NPM](https://nodei.co/npm/opensensemap-client.png)](https://npmjs.org/package/opensensemap-client)

Expand Down Expand Up @@ -148,7 +148,7 @@ start();
- [reset password with passwordResetToken](https://docs.opensensemap.org/#api-Users-password_reset)
- _Function:_ [`.passwordReset()`](https://killerjulian.github.io/opensensemap-client/functions/passwordReset.html)

You can find more information in the [full documentaion](https://killerjulian.github.io/opensensemap-client/).
You can find more information in the [full documentation](https://killerjulian.github.io/opensensemap-client/).

---

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"author": "KillerJulian <[email protected]>",
"license": "MIT",
"dependencies": {
"axios": "1.2.2"
"axios": "1.3.5"
},
"devDependencies": {
"@types/node": "16.11.7",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"eslint": "8.31.0",
"typescript": "4.9.4",
"typedoc": "0.23.23"
"@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.57.1",
"eslint": "8.38.0",
"typescript": "5.0.4",
"typedoc": "0.24.1"
},
"scripts": {
"build": "yarn build:lib && yarn build:docs",
Expand Down
4 changes: 2 additions & 2 deletions src/api/interpolation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function calculateIdw(
phenomenon: string,
bbox: string,
options?: CalculateIdwOptions
): Promise<{ code: 'NotFound'; message: 'no measurements found' } | CalculateIdw> {
): Promise<{ code: 'NotFound'; message: 'no measurements found' } | CalculatedIdw> {
if (options?.['from-date'] && options['from-date'] instanceof Date) {
options['from-date'] = options['from-date'].toISOString();
}
Expand Down Expand Up @@ -43,7 +43,7 @@ export type CalculateIdwOptions = {
exposure?: string | Exposure[];
};

export interface CalculateIdw {
export interface CalculatedIdw {
code: 'Ok';
data: {
breaks: number[];
Expand Down
3 changes: 2 additions & 1 deletion src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export type SensorTemplates =
| 'soundlevelmeter'
| 'windspeed'
| 'scd30'
| 'dps310';
| 'dps310'
| 'sps30';

export interface MQTT {
enabled: boolean;
Expand Down
32 changes: 30 additions & 2 deletions typedoc.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* ==========================================
* Customised CSS for the documentation
* ==========================================
*/

/*
* Code blocks:
*/

pre {
border-radius: 0.5em;
}
Expand All @@ -9,20 +19,38 @@ pre {
margin: 1em 0;
}

/*
* Topbar:
*/

.tsd-page-toolbar {
border: none;
}

/*
* Baseboard:
*/

.tsd-generator {
border-top: none;
background: var(--color-background-secondary);
filter: brightness(1.1);
}

.menu-sticky-wrap {
margin-bottom: 1rem;
.tsd-generator > p {
padding-left: 2rem;
}

@media (min-width: 770px) {
.tsd-generator > p {
padding-left: 3rem;
}
}

/*
* Type definition groups:
*/

.tsd-member-group {
padding: 1.3em;
background: var(--color-background-secondary);
Expand Down
Loading

0 comments on commit c797894

Please sign in to comment.