mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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 <>
This commit is contained in:
1
types/inline-css/index.d.ts
vendored
1
types/inline-css/index.d.ts
vendored
@@ -17,6 +17,7 @@ declare namespace InlineCss {
|
||||
preserveMediaQueries?: boolean;
|
||||
applyWidthAttributes?: boolean;
|
||||
applyTableAttributes?: boolean;
|
||||
removeHtmlSelectors?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
import inlineCss = require('inline-css');
|
||||
|
||||
var str: string;
|
||||
var bool: boolean;
|
||||
|
||||
var options:inlineCss.Options;
|
||||
var options: inlineCss.Options;
|
||||
|
||||
str = options.url;
|
||||
str = options.extraCss;
|
||||
@@ -16,19 +15,19 @@ 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
|
||||
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) => {
|
||||
|
||||
});
|
||||
inlineCss(str, options).then((value: string) => {});
|
||||
|
||||
Reference in New Issue
Block a user