Added the ability to update custom modules after a command is executed. (#476)

This commit is contained in:
Jas Singh
2024-11-10 12:32:16 -08:00
committed by GitHub
parent c9799a88b5
commit a7855baf13
4 changed files with 88 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
import { Binding } from 'lib/utils';
import { Variable } from 'types/variable';
export type InputHandlerEvents = {
onPrimaryClick?: Binding;
@@ -8,4 +9,9 @@ export type InputHandlerEvents = {
onScrollDown?: Binding;
};
export type RunAsyncCommand = (cmd: string, args: EventArgs, fn?: (output: string) => void) => void;
export type RunAsyncCommand = (
cmd: string,
args: EventArgs,
fn?: (output: string) => void,
postInputUpdater?: Variable<boolean>,
) => void;