Files
custum-hyprpanel/lib/types/utils.d.ts

14 lines
398 B
TypeScript

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,
postInputUpdated?: Variable<boolean>,
) => void;
export type ThrottleFnCallback = ((output: string) => void) | undefined;