1.1.4 • Published 6 months ago

@types/textversionjs v1.1.4

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

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

// Type definitions for textversionjs 1.1
// Project: https://github.com/EDMdesigner/textversionjs
// Definitions by: Aaron Osher <https://github.com/aaronosher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/* =================== 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: Fri, 02 Jul 2021 21:32:21 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Aaron Osher.

1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

8 months ago

1.1.1

3 years ago

1.1.0

6 years ago