Skip to content

Commit

Permalink
inline-style-prefixer v3
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor committed Dec 21, 2017
1 parent f5d9e26 commit 7888c3a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare module "inline-style-prefixer" {
declare type Config = {
userAgent?: string,
keepUnprefixed?: boolean
};
declare class Prefixer {
constructor(config?: Config): Prefixer;
prefix(styles: Object): Object;
}

declare module.exports: typeof Prefixer;
}

declare module "inline-style-prefixer/static" {
declare module.exports: Object => Object;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @flow
import Prefixer from "inline-style-prefixer";
import prefixAll from "inline-style-prefixer/static";

const styles: Object = prefixAll({});
// $ExpectError
prefixAll();

const prefixer = new Prefixer();
prefixer.prefix({});

0 comments on commit 7888c3a

Please sign in to comment.