@goparrot/geocoder
Version:
TypeScript GeoCoder, node geocoding library, supports google maps, mapquest, here, open street map, tom tom
14 lines • 527 B
JavaScript
import { registerDecorator } from 'class-validator';
import { IsExactMatchApplicableConstraint } from './is-exact-match-applicable.constraint';
export function IsExactMatchApplicable(options) {
return (object, propertyName) => {
registerDecorator({
target: object.constructor,
propertyName,
options,
constraints: ['accuracy', 'limit'],
validator: IsExactMatchApplicableConstraint,
});
};
}
//# sourceMappingURL=is-exact-match-applicable.js.map