@types/estimated-read-time
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Stepan Zinchenko.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/estimated-read-time

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • types