From f410f756a035293cbe72f005b7b92ef0acff6f73 Mon Sep 17 00:00:00 2001 From: Peter Sipos Date: Tue, 14 Apr 2020 01:49:28 +0200 Subject: [PATCH] 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 <> --- types/inline-css/index.d.ts | 1 + types/inline-css/inline-css-tests.ts | 27 +++++++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/types/inline-css/index.d.ts b/types/inline-css/index.d.ts index 2cd05b79e0..5fd123f588 100644 --- a/types/inline-css/index.d.ts +++ b/types/inline-css/index.d.ts @@ -17,6 +17,7 @@ declare namespace InlineCss { preserveMediaQueries?: boolean; applyWidthAttributes?: boolean; applyTableAttributes?: boolean; + removeHtmlSelectors?: boolean; } } diff --git a/types/inline-css/inline-css-tests.ts b/types/inline-css/inline-css-tests.ts index 8fd6307dfe..33b74081a9 100644 --- a/types/inline-css/inline-css-tests.ts +++ b/types/inline-css/inline-css-tests.ts @@ -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) => {});