-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
map/src/components/coordinates.ts
Line 437 in 6bb6459
| points[i] = new Coordinates(point.lat2, point.lon2); |
ERROR in /home/user/Projekte/map/src/components/coordinates.ts
./src/components/coordinates.ts 437:44-54
[tsl] ERROR in /home/user/Projekte/map/src/components/coordinates.ts(437,45)
TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
A possible workaround (to quickly get a working build) is to assert them as not-undefined (see https://stackoverflow.com/questions/52838335/ts2345-argument-of-type-number-undefined-is-not-assignable-to-parameter-of) like so:
points[i] = new Coordinates(point.lat2!, point.lon2!);
... or to globally disable the compiler-check for that (strictNullChecks) (nope).
Metadata
Metadata
Assignees
Labels
No labels