DefinitelyTyped/inline-css/inline-css.d.ts
2016-03-17 21:06:54 +09:00

29 lines
753 B
TypeScript

// Type definitions for inline-css
// Project: https://github.com/jonkemp/inline-css
// Definitions by: Philip Spain <https://github.com/philipisapain>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../bluebird/bluebird.d.ts" />
declare module 'inline-css' {
import Promise = require('bluebird');
namespace InlineCss {
export interface Options {
url:string;
extraCss?:string;
applyStyleTags?:boolean;
applyLinkTags?:boolean;
removeStyleTags?:boolean;
removeLinkTags?:boolean;
preserveMediaQueries?:boolean;
applyWidthAttributes?:boolean;
applyTableAttributes?:boolean;
}
}
function InlineCss(html:string, options:InlineCss.Options):Promise<string>;
export = InlineCss;
}