Added the ability to assign shortcuts to all bar modules. (#278)
This commit is contained in:
3
lib/types/utils.d.ts
vendored
3
lib/types/utils.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import { substitutes } from 'lib/icons';
|
||||
import { EventArgs } from './widget';
|
||||
|
||||
type SubstituteKeys = keyof typeof substitutes;
|
||||
|
||||
export type ThrottleFn = (cmd: string, fn: ((output: string) => void) | undefined) => void;
|
||||
export type ThrottleFn = (cmd: string, args: EventArgs, fn?: (output: string) => void) => void;
|
||||
export type ThrottleFnCallback = ((output: string) => void) | undefined;
|
||||
|
||||
Reference in New Issue
Block a user