forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinline-css.d.ts
More file actions
28 lines (23 loc) · 757 Bytes
/
inline-css.d.ts
File metadata and controls
28 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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-2.0.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;
}