mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* inline-css: add removeHtmlSelectors option add missing removeHtmlSelectors option to inline-css type definition * update dummy read/write test Co-authored-by: Peter Sipos <>
34 lines
762 B
TypeScript
34 lines
762 B
TypeScript
import inlineCss = require('inline-css');
|
|
|
|
var str: string;
|
|
var bool: boolean;
|
|
|
|
var options: inlineCss.Options;
|
|
|
|
str = options.url;
|
|
str = options.extraCss;
|
|
|
|
bool = options.applyStyleTags;
|
|
bool = options.applyLinkTags;
|
|
bool = options.removeStyleTags;
|
|
bool = options.removeLinkTags;
|
|
bool = options.preserveMediaQueries;
|
|
bool = options.applyWidthAttributes;
|
|
bool = options.applyTableAttributes;
|
|
bool = options.removeHtmlSelectors;
|
|
|
|
options = {
|
|
url: str,
|
|
extraCss: str,
|
|
applyStyleTags: bool,
|
|
applyLinkTags: bool,
|
|
removeStyleTags: bool,
|
|
removeLinkTags: bool,
|
|
preserveMediaQueries: bool,
|
|
applyWidthAttributes: bool,
|
|
applyTableAttributes: bool,
|
|
removeHtmlSelectors: bool,
|
|
};
|
|
|
|
inlineCss(str, options).then((value: string) => {});
|