DefinitelyTyped/types/inline-style-prefixer/index.d.ts
Andrej Hazucha 9fee92dff8 [inline-style-prefixer] allowing ES2015 module syntax (#18533)
* [inline-style-prefixer] allowing "import * as InlineStylePrefixer from 'inline-style-prefixer';" syntax

* [inline-style-prefixer] removing redundant export
2017-10-23 11:48:44 -07:00

29 lines
861 B
TypeScript

// Type definitions for inline-style-prefixer 3.0
// Project: https://github.com/rofrischmann/inline-style-prefixer
// Definitions by: Andrej Hazucha <https://github.com/ahz>
// dpetrezselyova <https://github.com/dpetrezselyova>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace InlineStylePrefixer {
interface Configuration {
userAgent?: string;
keepUnprefixed?: boolean;
}
}
declare class InlineStylePrefixer {
constructor(cfg?: InlineStylePrefixer.Configuration);
prefix(style: CSSStyleDeclaration): CSSStyleDeclaration;
// support for React.CSSProperties
prefix<T>(style: T): T;
static prefixAll(style: CSSStyleDeclaration): CSSStyleDeclaration;
// support for React.CSSProperties
static prefixAll<T>(style: T): T;
}
export = InlineStylePrefixer;