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

1.1.4 • Public • Published

Installation

npm install --save @types/textversionjs

Summary

This package contains type definitions for textversionjs (https://github.com/EDMdesigner/textversionjs).

Details

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

index.d.ts

/* =================== USAGE ===================
    import * as textVersion from "textversionjs";
 =============================================== */

declare function textversionjs(html: string, styleConfig?: textversionjs.styleConfig): string;

declare namespace textversionjs {
    type linkProcess = (href: string, linkText: string) => string;

    type imgProcess = (src: string, alt: string) => string;

    interface styleConfig {
        linkProcess?: linkProcess | undefined;
        imgProcess?: imgProcess | undefined;
        headingStyle?: "underline" | "linebreak" | "hashify" | undefined;
        listStyle?: "indentation" | "linebreak" | undefined;
        uIndentionChar?: string | undefined;
        oIndentionChar?: string | undefined;
        listIndentionTabs?: number | undefined;
        keepNbsps?: boolean | undefined;
    }
}

export = textversionjs;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Aaron Osher.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/textversionjs

Weekly Downloads

3,940

Version

1.1.4

License

MIT

Unpacked Size

4.33 kB

Total Files

5

Last publish

Collaborators

  • types