Files
DefinitelyTyped/types/inline-style-prefixer/index.d.ts
Andrej Hazucha 0141e9af8f Added initial types for inline-style-prefixer (#18413)
* Added initial types for inline-style-prefixer

https://github.com/rofrischmann/inline-style-prefixer

* [inline-style-prefixer] fix tslint issues

* [inline-style-prefixer] using export =

* [inline-style-prefixer] fixed test
2017-07-26 09:08:17 -07:00

27 lines
783 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
export = InlineStylePrefixer;
interface Configuration {
userAgent?: string;
keepUnprefixed?: boolean;
}
declare class InlineStylePrefixer {
constructor(cfg?: 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;
}