1.0.3 • Published 6 months ago

@types/estimate v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/estimate

Summary

This package contains type definitions for estimate (https://github.com/bevacqua/estimate).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estimate.

index.d.ts

// Type definitions for estimate 1.0
// Project: https://github.com/bevacqua/estimate
// Definitions by: Luis Rodrigues <https://github.com/goblindegook>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface Options {
    speed?: number | undefined;
    spaces?: RegExp | undefined;
}

export interface Estimate {
    progress: number;
    remaining: number;
    total: number;
    update(): void;
    initialize(): void;
}

export function element(element: HTMLElement, options?: Options): Estimate;

export function text(text: string, options?: Options): number;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:12 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Luis Rodrigues.