Skip to content

Commit 76aea03

Browse files
committed
refactor: remove unnecessary type assertion
1 parent f3bab73 commit 76aea03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class FormsField<T extends (arg: any) => Form> {
113113
this.$generateFormWithKey = (initialValue) => {
114114
const form: any = generateForm(initialValue);
115115
form.$key = count++;
116-
return form as ReturnType<T> & { $key: number };
116+
return form;
117117
};
118118

119119
this.$_formsRef = shallowRef([]);

0 commit comments

Comments
 (0)