DefinitelyTyped/types/inline-css/index.d.ts
Peter Sipos f410f756a0
inline-css: add removeHtmlSelectors option (#43733)
* inline-css: add removeHtmlSelectors option

add missing removeHtmlSelectors option to inline-css type definition

* update dummy read/write test

Co-authored-by: Peter Sipos <>
2020-04-13 16:49:28 -07:00

27 lines
807 B
TypeScript

// Type definitions for inline-css
// Project: https://github.com/jonkemp/inline-css
// Definitions by: Philip Spain <https://github.com/philipisapain>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2
import Promise = require('bluebird');
declare namespace InlineCss {
export interface Options {
url: string;
extraCss?: string;
applyStyleTags?: boolean;
applyLinkTags?: boolean;
removeStyleTags?: boolean;
removeLinkTags?: boolean;
preserveMediaQueries?: boolean;
applyWidthAttributes?: boolean;
applyTableAttributes?: boolean;
removeHtmlSelectors?: boolean;
}
}
declare function InlineCss(html: string, options: InlineCss.Options): Promise<string>;
export = InlineCss;