UNPKG

497 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_BTC_ADDRESS = "isBtcAddress";
3/**
4 * Check if the string is a valid BTC address.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isBtcAddress(value: unknown): boolean;
8/**
9 * Check if the string is a valid BTC address.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsBtcAddress(validationOptions?: ValidationOptions): PropertyDecorator;