DefinitelyTyped/types/inline-css/index.d.ts
2017-03-24 14:27:52 -07:00

28 lines
778 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 types="bluebird" />
import Promise = require('bluebird');
declare namespace InlineCss {
export interface Options {
url: string;
extraCss?: string;
applyStyleTags?: boolean;
applyLinkTags?: boolean;
removeStyleTags?: boolean;
removeLinkTags?: boolean;
preserveMediaQueries?: boolean;
applyWidthAttributes?: boolean;
applyTableAttributes?: boolean;
}
}
declare function InlineCss(html: string, options: InlineCss.Options): Promise<string>;
export = InlineCss;