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.