@eddaic/nestjs-decorators
Version:
Additional decorators intended for use with NestJS framework.
10 lines (9 loc) • 363 B
TypeScript
import { TransformOptions } from 'class-transformer';
export declare function trim(value: unknown): string | null;
/**
* Removes the leading and trailing white space and line terminator characters from string input.
*
* Null is returned if the value is not a string.
* @returns
*/
export declare function Trim(options?: TransformOptions): PropertyDecorator;