From 9fee92dff8db2a92ce0384a01c15c4297293feb0 Mon Sep 17 00:00:00 2001 From: Andrej Hazucha Date: Mon, 23 Oct 2017 20:48:44 +0200 Subject: [PATCH] [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 --- types/inline-style-prefixer/index.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/types/inline-style-prefixer/index.d.ts b/types/inline-style-prefixer/index.d.ts index f5b496f25a..8c730fff2f 100644 --- a/types/inline-style-prefixer/index.d.ts +++ b/types/inline-style-prefixer/index.d.ts @@ -4,15 +4,15 @@ // dpetrezselyova // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = InlineStylePrefixer; - -interface Configuration { - userAgent?: string; - keepUnprefixed?: boolean; +declare namespace InlineStylePrefixer { + interface Configuration { + userAgent?: string; + keepUnprefixed?: boolean; + } } declare class InlineStylePrefixer { - constructor(cfg?: Configuration); + constructor(cfg?: InlineStylePrefixer.Configuration); prefix(style: CSSStyleDeclaration): CSSStyleDeclaration; @@ -24,3 +24,5 @@ declare class InlineStylePrefixer { // support for React.CSSProperties static prefixAll(style: T): T; } + +export = InlineStylePrefixer;