Commit 021614b
committed
Fix 9 TS errors - Misc validators, helpers, endpoints
Fixed remaining TypeScript compilation errors:
- request-builders.spec.ts: Removed incorrect null parameter (1 fix)
- base-types.ts: Exported Event type (1 fix)
- edr/helpers.ts: Added string type check before 'in' operator (3 fixes)
- endpoint.ts: Added string type check for DateTimeParameter (2 fixes)
- stac/endpoint.ts: Added string type check for DateTimeParameter (2 fixes)
All fixes handle DateTimeParameter string literals ('now', 'latest')
before using 'in' operator which requires object types.
Resolves Sam-Bolling/CSAPI-Live-Testing#791 parent ab66e52 commit 021614b
5 files changed
Lines changed: 10 additions & 1 deletion
File tree
- src
- ogc-api
- csapi
- sensorml
- edr
- stac
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
632 | 634 | | |
633 | 635 | | |
634 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
0 commit comments