DefinitelyTyped/types/inline-css/inline-css-tests.ts

34 lines
762 B
TypeScript
Raw Normal View History

2015-11-02 15:51:06 +00:00
import inlineCss = require('inline-css');
var str: string;
var bool: boolean;
var options: inlineCss.Options;
2015-11-02 15:51:06 +00:00
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;
2015-11-02 15:51:06 +00:00
options = {
url: str,
extraCss: str,
applyStyleTags: bool,
applyLinkTags: bool,
removeStyleTags: bool,
removeLinkTags: bool,
preserveMediaQueries: bool,
applyWidthAttributes: bool,
applyTableAttributes: bool,
removeHtmlSelectors: bool,
2015-11-02 15:51:06 +00:00
};
inlineCss(str, options).then((value: string) => {});