Added the ability to update custom modules after a command is executed. (#476)
This commit is contained in:
8
lib/types/utils.d.ts
vendored
8
lib/types/utils.d.ts
vendored
@@ -1,7 +1,13 @@
|
||||
import { substitutes } from 'lib/icons';
|
||||
import { EventArgs } from './widget';
|
||||
import { Variable } from 'types/variable';
|
||||
|
||||
type SubstituteKeys = keyof typeof substitutes;
|
||||
|
||||
export type ThrottleFn = (cmd: string, args: EventArgs, fn?: (output: string) => void) => void;
|
||||
export type ThrottleFn = (
|
||||
cmd: string,
|
||||
args: EventArgs,
|
||||
fn?: (output: string) => void,
|
||||
postInputUpdated?: Variable<boolean>,
|
||||
) => void;
|
||||
export type ThrottleFnCallback = ((output: string) => void) | undefined;
|
||||
|
||||
Reference in New Issue
Block a user