UNPKG

@eddaic/nestjs-decorators

Version:

Additional decorators intended for use with NestJS framework.

14 lines (13 loc) 660 B
import { TransformIntOptions } from '../interface'; export declare function transformInt(value: unknown, options?: TransformIntOptions): number | null; export declare function transformIntArray(values: Array<unknown>, options?: TransformIntOptions): Array<number | null>; /** * Transform value into integer using specified options. If the value * is null, empty or undefined, it will return null. * * Otherwise an integer value will be returned rounded as necessary * using the specified rounding policy. * @param options {@link TransformIntOptions} * @returns */ export declare function TransformInt(options?: TransformIntOptions): PropertyDecorator;