Added definition for inline-css

This commit is contained in:
Philip Spain
2015-11-02 15:51:06 +00:00
parent d5ec2107e0
commit b11b72b33b
2 changed files with 63 additions and 0 deletions
+28
View File
@@ -0,0 +1,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/borisyankov/DefinitelyTyped
/// <reference path="../bluebird/bluebird.d.ts" />
declare module 'inline-css' {
import Promise = require('bluebird');
module 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;
}