DefinitelyTyped/types/inline-css/index.d.ts
Leonard Hecker 3c7c5b79aa [bluebird] Restore assignability to native Promises (fixes #11027) (#34805)
* [bluebird] Rename import to Bluebird for tests

* [bluebird] Restore assignability to native Promises

* [bluebird] Upgrade TypeScript Versions of all dependents
2019-05-24 13:57:50 -07:00

26 lines
768 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
// TypeScript Version: 3.2
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;