DefinitelyTyped/inline-css/inline-css-tests.ts
2015-11-02 15:51:06 +00:00

36 lines
709 B
TypeScript

/// <reference path="inline-css.d.ts" />
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;
options = {
url: str,
extraCss: str,
applyStyleTags: bool,
applyLinkTags: bool,
removeStyleTags: bool,
removeLinkTags: bool,
preserveMediaQueries: bool,
applyWidthAttributes: bool,
applyTableAttributes: bool
};
inlineCss(str, options).then((value:string) => {
});