Use unused var prefix for mapped type modifiers

This commit is contained in:
Dannon Baker
2023-05-31 15:54:11 -04:00
parent 3140aac134
commit a4e6e47192
2 changed files with 2 additions and 2 deletions
@@ -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 {
+1 -1
View File
@@ -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<State> = ref("idle");