File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export default [
1818 {
1919 rules : {
2020 'vue/multi-word-component-names' : 'off' ,
21+ '@typescript-eslint/no-explicit-any' : 'off' ,
2122 } ,
2223 } ,
2324] ;
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ export default function useFormReset<T>(params: T) {
3232 * set({ age: 1, name: 'test'})
3333 */
3434 function set ( values : Record < string , any > ) : void ;
35- function set ( ) {
36- if ( arguments . length === 1 ) {
37- formFields . value = { ...formFields . value , ...arguments [ 0 ] } ;
35+ function set ( ... args : any [ ] ) {
36+ if ( args . length === 1 ) {
37+ formFields . value = { ...formFields . value , ...args [ 0 ] } ;
3838 } else {
39- formFields . value [ arguments [ 0 ] as keyof T ] = arguments [ 1 ] ;
39+ formFields . value [ args [ 0 ] as keyof T ] = args [ 1 ] ;
4040 }
4141 }
4242
You can’t perform that action at this time.
0 commit comments