-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from OrionNebula/flow
Added Flow type definitions
- Loading branch information
Showing
5 changed files
with
37 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ignore] | ||
.*/node_modules/.* | ||
[include] | ||
|
||
[libs] | ||
flow-typed | ||
[lints] | ||
|
||
[options] | ||
|
||
[strict] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
* | ||
|
||
# But not | ||
!dist/** | ||
!dist/** | ||
# and | ||
!flow-typed/** |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// @flow | ||
|
||
declare module 'events' { | ||
declare class EventEmitter { | ||
/** | ||
* Invoke a listener only when a certain condition is satisfied. | ||
* @param {string | Symbol} event The name of the event to listen to. | ||
* @param {(...any) => boolean} predicate A function which validates the event data. | ||
* @param {(...any) => void} listener A listener to the event. | ||
*/ | ||
onWhen (event: string | Symbol, predicate: (...args: any[]) => boolean, listener: (...args: any[]) => void): void; | ||
|
||
/** | ||
* Invoke a listener the first time a certain condition is satisfied. | ||
* @param {string | Symbol} event The name of the event to listen to. | ||
* @param {(...any) => boolean} predicate A function which validates the event data. | ||
* @param {(...any) => void} listener A listener to the event. | ||
*/ | ||
onceWhen (event: string | Symbol, predicate: (...args: any[]) => boolean, listener: (...args: any[]) => void): void; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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