mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use unused var prefix for mapped type modifiers
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user