GeoIDInputMatcher<T>
Type Parameters
Type Parameter |
---|
T extends GeoIDPart [] |
Constructors
new GeoIDInputMatcher()
new GeoIDInputMatcher<T>(...geoIDComponents): GeoIDInputMatcher<T>
Parameters
Parameter | Type |
---|---|
...geoIDComponents | T |
Returns
Properties
components
components: T;
length
length: number;
The specific length of a valid GeoID input.
pattern
pattern: RegExp;
Methods
parse()
parse<R>(input): null | R
Type Parameters
Type Parameter |
---|
R extends ParsedGeoIDPartial |
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| R
test()
test(input): boolean
Parameters
Parameter | Type |
---|---|
input | string |
Returns
boolean