class-transformer#TransformFnParams TypeScript Examples
The following examples show how to use
class-transformer#TransformFnParams.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemoryStoredFile.ts From nestjs-form-data with MIT License | 5 votes |
@Transform((params: TransformFnParams) => (params.value instanceof Buffer) ? params.value : null)
buffer: Buffer;
Example #2
Source File: block-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@ApiPropertyOptional({
description: 'Whether or not to include transactions in the response',
})
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly with_transactions?: boolean;
Example #3
Source File: blocks-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@ApiPropertyOptional({
description: 'Whether to include only main-chain or non-main-chain blocks',
})
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly main?: boolean;
Example #4
Source File: blocks-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@ApiPropertyOptional({
description: 'Whether to include transactions in the response',
})
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly with_transactions?: boolean;
Example #5
Source File: transaction-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@ApiPropertyOptional({
description: 'Whether or not to include blocks in the response',
})
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly with_blocks?: boolean;
Example #6
Source File: transactions-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly with_blocks?: boolean;
Example #7
Source File: user-query.dto.ts From ironfish-api with Mozilla Public License 2.0 | 5 votes |
@ApiPropertyOptional({
description: 'Whether or not to include user rank in the response',
})
@IsOptional()
@Transform(({ value }: TransformFnParams) => stringToBoolean(value))
readonly with_rank?: boolean;