ParseFilePipeBuilder

  
class ParseFilePipeBuilder {
  addMaxSizeValidator(options: MaxFileSizeValidatorOptions)
  addFileTypeValidator(options: FileTypeValidatorOptions)
  addValidator(validator: FileValidator<Record<string, any>>)
  build(additionalOptions?: Omit<ParseFileOptions, "validators">): ParseFilePipe
}

Methods

addMaxSizeValidator()


addMaxSizeValidator(options: MaxFileSizeValidatorOptions)

Parameters

Option Type Description
options MaxFileSizeValidatorOptions

addFileTypeValidator()


addFileTypeValidator(options: FileTypeValidatorOptions)

Parameters

Option Type Description
options FileTypeValidatorOptions

addValidator()


addValidator(validator: FileValidator<Record<string, any>>)

Parameters

Option Type Description
validator FileValidator>

build()


build(additionalOptions?: Omit<ParseFileOptions, "validators">): ParseFilePipe

Parameters

Option Type Description
additionalOptions Omit

Optional. Default is undefined.

Returns

ParseFilePipe