Skip to content

Class ChecksumValidator

🏭 Constructors

constructor

ts
new ChecksumValidator(checksum: ChecksumValidatorOptions): ChecksumValidator

Parameters

  • checksum: ChecksumValidatorOptions

Return Type

  • ChecksumValidator

Defined in: packages/file-transfer/validator.ts:17

🏷️ Properties

checksum

ts
checksum: ChecksumValidatorOptions

Defined in: packages/file-transfer/validator.ts:17

🔧 Methods

validate

ts
validate(destination: string, url: string): Promise<void>

Validate the download result. It should throw ValidationError if validation failed.

Parameters

  • destination: string The result file
  • url: string The url where the file downloaded from

Return Type

  • Promise<void>

Defined in: packages/file-transfer/validator.ts:19

Released under the MIT License.