refactor: eslint代码检查优化
Former-commit-id: 4c11b5d0cdd10f28148cf3d9b593f85e082cdc51
This commit is contained in:
@@ -34,7 +34,7 @@ const position = () => {
|
||||
* @param {number} duration
|
||||
* @param {Function} callback
|
||||
*/
|
||||
export const scrollTo = (to: number, duration: number, callback?: Function) => {
|
||||
export const scrollTo = (to: number, duration: number, callback?: any) => {
|
||||
const start = position()
|
||||
const change = to - start
|
||||
const increment = 20
|
||||
|
||||
Reference in New Issue
Block a user