From a4e6e4719271510122241e1a473dd93ce253b642 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 31 May 2023 15:53:51 -0400 Subject: [PATCH] Use unused var prefix for mapped type modifiers --- client/src/components/History/Content/model/stateTypes.d.ts | 2 +- client/src/composables/fileDrop.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/History/Content/model/stateTypes.d.ts b/client/src/components/History/Content/model/stateTypes.d.ts index 9878b3dc411..3ef3a45c445 100644 --- a/client/src/components/History/Content/model/stateTypes.d.ts +++ b/client/src/components/History/Content/model/stateTypes.d.ts @@ -8,7 +8,7 @@ export type State = { }; export type States = { - [key in keyof typeof STATES]: State; + [_key in keyof typeof STATES]: State; }; export interface HelpText { diff --git a/client/src/composables/fileDrop.ts b/client/src/composables/fileDrop.ts index 5c281137695..400ca024a89 100644 --- a/client/src/composables/fileDrop.ts +++ b/client/src/composables/fileDrop.ts @@ -23,7 +23,7 @@ export function useFileDrop( type State = "idle" | "blocked" | "fileDragging"; type StateMachine = { - [state in State]: (event: MouseEvent) => State; + [_state in State]: (event: MouseEvent) => State; }; const currentState: Ref = ref("idle");