1.2.2 • Published 6 months ago

@types/estimated-read-time v1.2.2

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

Installation

npm install --save @types/estimated-read-time

Summary

This package contains type definitions for estimated-read-time (https://github.com/karthik512/estimated-read-time).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estimated-read-time.

index.d.ts

// Type definitions for estimated-read-time 1.2
// Project: https://github.com/karthik512/estimated-read-time
// Definitions by: Stepan Zinchenko <https://github.com/stepanzin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface TextOptions {
    MIN_WORD_LEN?: number;
    WPM?: number;
    IS_TECHNICAL_DOC?: boolean;
    TECH_DIFFICULTY?: 1 | 2 | 3 | 4 | 5;
    TOTAL_WORDS?: number;
    TOTAL_SECONDS?: number;
}

export interface TextResult {
    // eslint-disable-next-line camelcase
    word_count: number;
    seconds: number;
}

export function text(content: string, options?: TextOptions): TextResult;

Additional Details

  • Last updated: Thu, 29 Jul 2021 13:31:24 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Stepan Zinchenko.