Skip to content

Commit 0a12f9c

Browse files
yuanjackie1jasnoo
authored andcommitted
Fixed anys in the ActionProps interaface/ action
1 parent e7b7acb commit 0a12f9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/components/Action.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ interface ActionProps {
1616
last: boolean;
1717
index: number;
1818
sliderIndex: number;
19-
dispatch: (a: any) => void;
19+
dispatch: (a: { type: string; payload: unknown; }) => void;
2020
displayName: string;
2121
componentName: string;
2222
componentData: { actualDuration: number } | undefined;
23-
routePath: any;
23+
routePath: unknown;
2424
state?: Record<string, unknown>;
2525
viewIndex: number | undefined;
2626
isCurrIndex: boolean;
27-
handleOnkeyDown: (e: any, i: number) => any;
27+
handleOnkeyDown: (e: unknown, i: number) => void;
2828
}
2929

3030
/**
@@ -66,7 +66,7 @@ const Action = (props: ActionProps): JSX.Element => {
6666
return 'NO TIME';
6767
}
6868
let seconds: number | string;
69-
let milliseconds: any = componentData.actualDuration;
69+
let milliseconds: any = componentData.actualDuration;
7070
if (Math.floor(componentData.actualDuration) > 60) {
7171
seconds = Math.floor(componentData.actualDuration / 60);
7272
seconds = JSON.stringify(seconds);
@@ -89,7 +89,7 @@ const Action = (props: ActionProps): JSX.Element => {
8989
};
9090
const displayTime: string = cleanTime();
9191

92-
const optionsCursorTrueWithMargin = {
92+
const optionsCursorTrueWithMargin: {} = {
9393
followCursor: true,
9494
shiftX: 20,
9595
shiftY: 0,

0 commit comments

Comments
 (0)