Skip to content

Commit

Permalink
remove generic constraint on getFormValue (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpylua authored Nov 26, 2020
1 parent 6b03490 commit b48ad59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zent/src/form/formulr/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class ValidatorContext<T> {
return data as T;
}

getFormValue<T extends UnknownObject>(): T | null | undefined {
getFormValue<T>(): T | null | undefined {
return this.model.form?.getRawValue() as T | null | undefined;
}
}
Expand Down

0 comments on commit b48ad59

Please sign in to comment.