Skip to main content

GeoIDInputMatcher<T>

Type Parameters​

Type Parameter
T extends GeoIDPart[]

Constructors​

new GeoIDInputMatcher()​

new GeoIDInputMatcher<T>(...geoIDComponents): GeoIDInputMatcher<T>

Parameters​

ParameterType
...geoIDComponentsT

Returns​

GeoIDInputMatcher<T>

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​

ParameterType
inputstring

Returns​

null | R


test()​

test(input): boolean

Parameters​

ParameterType
inputstring

Returns​

boolean