UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 535 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_SURROGATE_PAIR = "isSurrogatePair"; /** * Checks if the string contains any surrogate pairs chars. * If given value is not a string, then it returns false. */ export declare function isSurrogatePair(value: unknown): boolean; /** * Checks if the string contains any surrogate pairs chars. * If given value is not a string, then it returns false. */ export declare function IsSurrogatePair(validationOptions?: ValidationOptions): PropertyDecorator;