@eddaic/nestjs-decorators
Version:
Additional decorators intended for use with NestJS framework.
13 lines (12 loc) • 541 B
TypeScript
import { TransformIntOptions } from '../interface';
export declare function transformBigInt(value: unknown, options?: TransformIntOptions): bigint | null;
/**
* Transform value into bigint using specified options. If the value
* cannot be converted into bigint, null is returned.
*
* Otherwise a the value will be returned rounded as necessary
* using the specified rounding policy.
* @param options {@link TransformIntOptions}
* @returns
*/
export declare function TransformBigInt(options?: TransformIntOptions): PropertyDecorator;