webpack-userscript
Version:
A Webpack plugin for userscript projects.
16 lines (15 loc) • 1.13 kB
TypeScript
import { ValidationOptions } from 'class-validator';
export declare function date(): Date;
/**
* Shipped from NestJs#applyDecorators()
* @see {@link https://github.com/nestjs/nest/blob/bee462e031f9562210c65b9eb8e8a20cab1f301f/packages/common/decorators/core/apply-decorators.ts github:nestjs/nest}
*/
export declare function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends (...args: any[]) => any, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
/**
* @see {@link https://github.com/typestack/class-validator/issues/759#issuecomment-712361384 github:typestack/class-validator#759}
*/
export declare function MutuallyExclusive(group: string, validationOptions?: ValidationOptions): PropertyDecorator;
export declare namespace MutuallyExclusive {
var getMetaKey: (tag: string) => symbol;
}
export declare function IsRecord(keyValidators?: ((k: string | symbol) => boolean)[], valueValidators?: ((v: any) => boolean)[], validationOptions?: ValidationOptions): PropertyDecorator;