Skip to content

Commit

Permalink
Merge pull request #11 from koopjs/p/ts-errors
Browse files Browse the repository at this point in the history
chore: fix some ts errors
  • Loading branch information
rgwozdz authored Mar 29, 2024
2 parents 264940d + e47fce3 commit 0119bc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/standardize-geometry-filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class StandardizedGeometryFilter {

extractSR(
srSource: string,
spatialReference: ArcgisSpatialReference,
): ISpatialReference {
spatialReference: ArcgisSpatialReference | undefined,
): ISpatialReference | void {
if (!spatialReference) {
return;
}
Expand All @@ -148,7 +148,7 @@ class StandardizedGeometryFilter {
}

if ((spatialReference as ISpatialReference).wkt) {
weakValidateWkt((spatialReference as ISpatialReference).wkt);
weakValidateWkt((spatialReference as ISpatialReference).wkt as string);
return spatialReference as ISpatialReference;
}
}
Expand Down Expand Up @@ -246,7 +246,7 @@ function getSpatialReferenceFromCode(sr: ArcgisSpatialReference): any {
};
}

function getSrid(sr: ISpatialReference): number {
function getSrid(sr: ISpatialReference): number | undefined {
return sr.wkid || sr.latestWkid || sr.vcsWkid || sr.latestVcsWkid;
}

Expand Down

0 comments on commit 0119bc8

Please sign in to comment.