Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Fix no-unused-vars lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark committed Dec 20, 2020
1 parent 458afca commit e95abf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export async function scrollTo(
prop: string,
startTime: number,
duration: number | undefined = 300,
easeFunc: (time: number) => number,
callback: () => void
easeFunc: EasingFunction,
callback: Function
) => {
window.requestAnimationFrame(() => {
const currentTime = Date.now();
Expand Down Expand Up @@ -178,6 +178,7 @@ export const utils = {
},
};

// eslint-disable-next-line no-unused-vars
type EasingFunction = (t: number) => number;

interface EasingFunctions {
Expand Down

0 comments on commit e95abf4

Please sign in to comment.