Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Use $Compose instead Compose (#523)
Browse files Browse the repository at this point in the history
* Use $Compose instead Compose

* Update flow-bin dependencies
  • Loading branch information
istarkov committed Sep 21, 2017
1 parent 3e5bff8 commit 6064554
Show file tree
Hide file tree
Showing 29 changed files with 17 additions and 75 deletions.
2 changes: 1 addition & 1 deletion types/flow-example/.flowconfig
Expand Up @@ -6,7 +6,7 @@
[include]

[libs]
../flow-typed/recompose_v0.24.x/flow_v0.53.x-/recompose_v0.24.x.js
../flow-typed/recompose_v0.24.x/flow_v0.55.x-/recompose_v0.24.x.js

[options]
suppress_comment=\\(.\\|\n\\)*\\$ExpectError
Expand Down
2 changes: 1 addition & 1 deletion types/flow-example/package.json
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"change-emitter": "^0.1.6",
"flow": "^0.2.3",
"flow-bin": "^0.54.1",
"flow-bin": "^0.55.0",
"glamor": "^3.0.0-3",
"glamor-reset": "^3.0.0-2",
"hoist-non-react-statics": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions types/flow-example/yarn.lock
Expand Up @@ -2536,9 +2536,9 @@ flatten@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"

flow-bin@^0.54.1:
version "0.54.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.54.1.tgz#7101bcccf006dc0652714a8aef0c72078a760510"
flow-bin@^0.55.0:
version "0.55.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.55.0.tgz#9083da9327bd8cab6b4076d63d85f2247a7eae1b"

flow@^0.2.3:
version "0.2.3"
Expand Down
2 changes: 1 addition & 1 deletion types/flow-typed/.flowconfig
Expand Up @@ -3,7 +3,7 @@
[include]

[libs]
../flow-typed/recompose_v0.24.x/flow_v0.53.x-/recompose_v0.24.x.js
../flow-typed/recompose_v0.24.x/flow_v0.55.x-/recompose_v0.24.x.js

[options]
suppress_comment=\\(.\\|\n\\)*\\$ExpectError
Expand Down
2 changes: 1 addition & 1 deletion types/flow-typed/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "istarkov@gmail.com",
"license": "MIT",
"devDependencies": {
"flow-bin": "^0.54.1",
"flow-bin": "^0.55.0",
"prop-types": "^15.5.10",
"rxjs": "^5.4.2"
},
Expand Down
Expand Up @@ -64,64 +64,6 @@ declare module 'recompose' {

declare type UnaryFn<A, R> = (a: A) => R

declare type Compose = (<A, B, C, D, E, F, G, H, I>(
hi: UnaryFn<H, I>,
gh: UnaryFn<G, H>,
fg: UnaryFn<F, G>,
ef: UnaryFn<E, F>,
de: UnaryFn<D, E>,
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, I>) &
(<A, B, C, D, E, F, G, H>(
gh: UnaryFn<G, H>,
fg: UnaryFn<F, G>,
ef: UnaryFn<E, F>,
de: UnaryFn<D, E>,
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, H>) &
(<A, B, C, D, E, F, G>(
fg: UnaryFn<F, G>,
ef: UnaryFn<E, F>,
de: UnaryFn<D, E>,
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, G>) &
(<A, B, C, D, E, F>(
ef: UnaryFn<E, F>,
de: UnaryFn<D, E>,
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, F>) &
(<A, B, C, D, E>(
de: UnaryFn<D, E>,
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, E>) &
(<A, B, C, D>(
cd: UnaryFn<C, D>,
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, D>) &
(<A, B, C>(
bc: UnaryFn<B, C>,
ab: UnaryFn<A, B>,
...rest: Array<void>
) => UnaryFn<A, C>) &
(<A, B>(ab: UnaryFn<A, B>, ...rest: Array<void>) => UnaryFn<A, B>)

// -----------------------------------------------------------------
// Public declarations
// -----------------------------------------------------------------
Expand All @@ -133,7 +75,7 @@ declare module 'recompose' {
Component<Enhanced>
>

declare export var compose: Compose
declare export var compose: $Compose

// ---------------------------------------------------------------------------
// ----------------===<<<HOCs with good flow support>>>===--------------------
Expand Down
Expand Up @@ -26,7 +26,7 @@ const enhacer: HOC<*, EnhancedCompProps> = compose(
// seems like this https://github.com/facebook/flow/issues/4342 issue
withProps(props => ({
a: (props.a: string),
// Must $ ExpectError but not
// $ExpectError but not
e: Math.round(props.a),
}))
)
Expand Down
Expand Up @@ -31,7 +31,7 @@ const enhacer: HOC<*, EnhancedCompProps> = compose(
// but because of this https://github.com/facebook/flow/issues/4342
withProps(props => ({
a: (props.a: string),
// Must $ ExpectError but not
// $ExpectError but not
e: Math.round(props.a),
}))
)
Expand Down
Expand Up @@ -48,7 +48,7 @@ const flattenEnhacer: HOC<*, EnhancedCompProps> = compose(
>),
withProps(props => ({
eA: (props.eA: number),
// TODO: Must throw, but not
// $ExpectError
eB: (props.eA: string),
}))
)
Expand Down Expand Up @@ -95,7 +95,7 @@ const renameEnhacer: HOC<*, EnhancedCompProps> = compose(
>),
withProps(props => ({
eA: (props.eA: number),
// TODO: Must throw issue but no !!!!
// $ExpectError
eB: (props.eA: string),
}))
)
Expand All @@ -115,7 +115,7 @@ const renamePropsEnhacer: HOC<*, EnhancedCompProps> = compose(
>),
withProps(props => ({
eA: (props.eA: number),
// TODO: Must throw issue but no !!!!
// $ExpectError
eB: (props.eA: string),
}))
)
Expand All @@ -131,7 +131,7 @@ const withStateEnhancer: HOC<*, EnhancedCompProps> = compose(
>),
withProps(props => ({
eA: (props.eA: number),
// TODO: Must throw issue but no !!!!
// $ExpectError
eB: (props.eA: string),
}))
)
Expand Down
6 changes: 3 additions & 3 deletions types/flow-typed/yarn.lock
Expand Up @@ -28,9 +28,9 @@ fbjs@^0.8.9:
setimmediate "^1.0.5"
ua-parser-js "^0.7.9"

flow-bin@^0.54.1:
version "0.54.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.54.1.tgz#7101bcccf006dc0652714a8aef0c72078a760510"
flow-bin@^0.55.0:
version "0.55.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.55.0.tgz#9083da9327bd8cab6b4076d63d85f2247a7eae1b"

iconv-lite@~0.4.13:
version "0.4.18"
Expand Down

0 comments on commit 6064554

Please sign in to comment.