UNPKG

627 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_ETHEREUM_ADDRESS = "isEthereumAddress";
3/**
4 * Check if the string is an Ethereum address using basic regex. Does not validate address checksums.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isEthereumAddress(value: unknown): boolean;
8/**
9 * Check if the string is an Ethereum address using basic regex. Does not validate address checksums.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsEthereumAddress(validationOptions?: ValidationOptions): PropertyDecorator;