Skip to content

Commit

Permalink
Merge pull request #12096 from mohamadrezamomeni/fix-multi-files
Browse files Browse the repository at this point in the history
fix(common): fix custom multi file validator
  • Loading branch information
kamilmysliwiec authored Aug 18, 2023
2 parents d368d33 + ccca642 commit f3d6f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/pipes/file/file-validator.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export abstract class FileValidator<
* Indicates if this file should be considered valid, according to the options passed in the constructor.
* @param file the file from the request object
*/
abstract isValid(file?: TFile): boolean | Promise<boolean>;
abstract isValid(file?: TFile | TFile[] | Record<string, TFile[]>): boolean | Promise<boolean>;

/**
* Builds an error message in case the validation fails.
Expand Down

0 comments on commit f3d6f99

Please sign in to comment.