isGeoIDComponent()
function isGeoIDComponent<T>(component, input): input is GeoIDPartMapping[T]
Type-predicate for checking if a value appears to be a valid GeoID component.
Type Parameters
| Type Parameter |
|---|
T extends GeoIDPart |
Parameters
| Parameter | Type |
|---|---|
component | T |
input | unknown |
Returns
input is GeoIDPartMapping[T]