I think you would be better off with ValueMapping.literalToNumber.
|
get lat(): number | null { |
|
const v = this.singularNullable(GEO.lat, ValueMapping.literalToString); |
|
return v != null ? Number(v) : null; |
|
} |
|
get long(): number | null { |
|
const v = this.singularNullable(GEO.long, ValueMapping.literalToString); |
|
return v != null ? Number(v) : null; |
|
} |
I think you would be better off with
ValueMapping.literalToNumber.volunteering-demo/app/lib/class/VolunteerProfile.ts
Lines 14 to 21 in 9fde751