@types/electron-progressbar
TypeScript icon, indicating that this package has built-in type declarations

1.2.6 • Public • Published

Installation

npm install --save @types/electron-progressbar

Summary

This package contains type definitions for electron-progressbar (https://github.com/AndersonMamede/electron-progressbar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/electron-progressbar.

index.d.ts

import { app, BrowserWindowConstructorOptions } from "electron";

declare class ProgressBar {
    constructor(options: ProgressBarOptions, electronApp?: typeof app);

    getOptions(): ProgressBarOptions;

    on(eventName: "ready" | "progress" | "completed" | "aborted", listener: () => void): this;
    on(eventName: "progress" | "completed" | "aborted", listener: (value: number) => void): this;

    setCompleted(): void;

    close(): void;

    isInProgress(): boolean;

    isCompleted(): boolean;

    value: number;
    text: string;
    detail: string;
}

interface ProgressBarOptions {
    abortOnError?: boolean | undefined;
    indeterminate?: boolean | undefined;
    initialValue?: number | undefined;
    maxValue?: number | undefined;
    closeOnComplete?: boolean | undefined;
    title?: string | undefined;
    text?: string | undefined;
    detail?: string | undefined;
    style?: StyleOptions | undefined;
    browserWindow?: BrowserWindowConstructorOptions | undefined;
}

interface StyleOptions {
    text?: object | undefined;
    detail?: object | undefined;
    bar?: object | undefined;
    value?: object | undefined;
}

export = ProgressBar;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: electron

Credits

These definitions were written by Samuel Corsi-House.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/electron-progressbar

Weekly Downloads

290

Version

1.2.6

License

MIT

Unpacked Size

5.06 kB

Total Files

5

Last publish

Collaborators

  • types