-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow] Drop support for $Compose and $ComposeReverse
Summary: I want to get rid of some of the $ types that it's not really used widely and reduces some custom functions that we don't always get right. Changelog: [errors] Support for $Compose and $ComposeReverse types are removed. We recommend to use overloads to approximate their behavior instead. e.g. ``` declare export function compose(): <T>(a: T) => T; declare export function compose<F: (...$ReadOnlyArray<empty>) => mixed>( f: F, ): F; declare export function compose<A, T: $ReadOnlyArray<any>, R>( f1: (a: A) => R, f2: (...T) => A, ): (...T) => R; declare export function compose<A, B, T: $ReadOnlyArray<any>, R>( f1: (b: B) => R, f2: (a: A) => B, f3: (...T) => A, ): (...T) => R; declare export function compose<A, B, C, T: $ReadOnlyArray<any>, R>( f1: (c: C) => R, f2: (b: B) => C, f3: (a: A) => B, f4: (...T) => A, ): (...T) => R; declare export function compose<R>( f1: (b: any) => R, ...funcs: $ReadOnlyArray<(...$ReadOnlyArray<empty>) => mixed> ): (...$ReadOnlyArray<any>) => R; declare export function compose<R>( ...funcs: $ReadOnlyArray<(...$ReadOnlyArray<empty>) => mixed> ): (...$ReadOnlyArray<any>) => R; ``` Reviewed By: panagosg7 Differential Revision: D55048197 fbshipit-source-id: c8f15f6f274a4d9b8e3acafec0a8bd30e5dd7529
- Loading branch information
1 parent
e3a6d28
commit 505d1ab
Showing
24 changed files
with
32 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.