UNPKG

498 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_INSTANCE = "isInstance";
3/**
4 * Checks if the value is an instance of the specified object.
5 */
6export declare function isInstance(object: unknown, targetTypeConstructor: new (...args: any[]) => any): boolean;
7/**
8 * Checks if the value is an instance of the specified object.
9 */
10export declare function IsInstance(targetType: new (...args: any[]) => any, validationOptions?: ValidationOptions): PropertyDecorator;