You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
502 B
TypeScript
20 lines
502 B
TypeScript
declare module "osc-progress" {
|
|
export type OscProgressController = {
|
|
setIndeterminate: (label: string) => void;
|
|
setPercent: (label: string, percent: number) => void;
|
|
clear: () => void;
|
|
done?: () => void;
|
|
};
|
|
|
|
export function createOscProgressController(params: {
|
|
env: NodeJS.ProcessEnv;
|
|
isTty: boolean;
|
|
write: (chunk: string) => void;
|
|
}): OscProgressController;
|
|
|
|
export function supportsOscProgress(
|
|
env: NodeJS.ProcessEnv,
|
|
isTty: boolean,
|
|
): boolean;
|
|
}
|