DefinitelyTyped/types/inline-css/index.d.ts
segayuu 1a07f27101 [@types/Bluebird] Make iterative methods rigid types without type parameters. (#27216)
* Resolve bluebird(Array) method

* upgrade typescript version from bluebird-global

* move testfile
Reason: There are too many type definition files
  depending on jquery and it can not be managed.

* upgrade typescript version from bluebird require packages

* fix lint error: use-default-type-parameter
2018-07-12 09:23:46 -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: 2.8
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;