Skip to content

Commit

Permalink
packages:js:fix-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Voldemat committed Sep 9, 2023
1 parent b0ac7bb commit 9f6bdfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/js/src/validators/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ async function validateImage (
: errorResult
}

export function buildValidator<T extends ImageTypeSpec> (
spec: ValidationFormFieldSpec<T>
): (value: string | File | null) => Promise<IValidatorResult>
export function buildValidator<T extends Exclude<TypeSpec, ImageTypeSpec>> (
spec: ValidationFormFieldSpec<T>
): (value: string | File | null) => IValidatorResult
export function buildValidator<T extends ImageTypeSpec> (
spec: ValidationFormFieldSpec<T>
): (value: string | File | null) => Promise<IValidatorResult>
export function buildValidator<T extends TypeSpec> (
spec: ValidationFormFieldSpec<T>
): ValidatorFunc {
Expand Down

0 comments on commit 9f6bdfe

Please sign in to comment.