Skip to content

Commit a35dfa6

Browse files
committed
fix: use valid interface
1 parent 84c72b3 commit a35dfa6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/common/yok.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { CommandsDelimiters } from "./constants";
66
import { IDictionary } from "./declarations";
77
import { IInjector } from "./definitions/yok";
88
import { ICommandArgument, ICommand } from "./definitions/commands";
9-
import { IKeyCommand, IValidKeyCommands } from "./definitions/key-commands";
9+
import { IKeyCommand, IValidKeyName } from "./definitions/key-commands";
1010

1111
export let injector: IInjector;
1212

@@ -189,10 +189,7 @@ export class Yok implements IInjector {
189189
});
190190
}
191191

192-
public registerKeyCommand(
193-
name: IValidKeyCommands,
194-
resolver: IKeyCommand
195-
): void {
192+
public registerKeyCommand(name: IValidKeyName, resolver: IKeyCommand): void {
196193
this.register(this.createKeyCommandName(name), resolver);
197194
}
198195

0 commit comments

Comments
 (0)