Skip to content

Commit

Permalink
fix: validation
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Oct 30, 2020
1 parent bcfce44 commit adb2709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unit/src/Validation/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ValidationSchema} from "./ValidationSchema";
export type ValidationValue<T> = T extends Array<infer V> ? V : T;

export type ValidationFunction<T, K extends keyof T> = |
((value: T[K]) => void) | ValidationSchema<ValidationValue<T[K]>>;
((value: T[K]) => void) | ValidationSchema<Exclude<ValidationValue<T[K]>, null | undefined>>;

export type ValidationAttributes = {
required?: boolean;
Expand Down

0 comments on commit adb2709

Please sign in to comment.