-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reducer with types #20
Open
TondaHack
wants to merge
8
commits into
master
Choose a base branch
from
reducer-types
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9f3b8a9
Reducer with types
TondaHack 0a32445
Fix seamles-immutable type definition
4749fec
Fix tests
TondaHack 4ffa861
Add components flow
TondaHack 88cf62e
Type of Filed and Connect (Weak)
TondaHack 21e4bdc
Add back peerDependencies
TondaHack 9620886
Improve types
TondaHack 97e712b
eslint with flow
TondaHack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -7,3 +7,6 @@ docs/ | |
node_modules/ | ||
npm-debug.log | ||
.DS_Store | ||
|
||
# IDE | ||
.idea/ |
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,193 @@ | ||
// flow-typed signature: 8898603ed592b58f9cb89fd30a371a09 | ||
// flow-typed version: <<STUB>>/flow-typed_v^2.1.2/flow_v0.46.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'flow-typed' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'flow-typed' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'flow-typed/dist/cli' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/create-stub' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/install' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/runTests' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/search' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/update-cache' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/update' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/validateDefs' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/commands/version' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/cacheRepoUtils' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/codeSign' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/fileUtils' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/flowProjectUtils' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/flowVersion' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/git' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/github' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/isInFlowTypedRepo' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/libDefs' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/node' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/npm/npmLibDefs' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/npm/npmProjectUtils' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/semver' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/stubUtils' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'flow-typed/dist/lib/validationErrors' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'flow-typed/dist/cli.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/cli'>; | ||
} | ||
declare module 'flow-typed/dist/commands/create-stub.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>; | ||
} | ||
declare module 'flow-typed/dist/commands/install.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/install'>; | ||
} | ||
declare module 'flow-typed/dist/commands/runTests.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>; | ||
} | ||
declare module 'flow-typed/dist/commands/search.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/search'>; | ||
} | ||
declare module 'flow-typed/dist/commands/update-cache.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>; | ||
} | ||
declare module 'flow-typed/dist/commands/update.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/update'>; | ||
} | ||
declare module 'flow-typed/dist/commands/validateDefs.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>; | ||
} | ||
declare module 'flow-typed/dist/commands/version.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/commands/version'>; | ||
} | ||
declare module 'flow-typed/dist/lib/cacheRepoUtils.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/cacheRepoUtils'>; | ||
} | ||
declare module 'flow-typed/dist/lib/codeSign.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>; | ||
} | ||
declare module 'flow-typed/dist/lib/fileUtils.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>; | ||
} | ||
declare module 'flow-typed/dist/lib/flowProjectUtils.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>; | ||
} | ||
declare module 'flow-typed/dist/lib/flowVersion.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/flowVersion'>; | ||
} | ||
declare module 'flow-typed/dist/lib/git.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/git'>; | ||
} | ||
declare module 'flow-typed/dist/lib/github.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/github'>; | ||
} | ||
declare module 'flow-typed/dist/lib/isInFlowTypedRepo.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/isInFlowTypedRepo'>; | ||
} | ||
declare module 'flow-typed/dist/lib/libDefs.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>; | ||
} | ||
declare module 'flow-typed/dist/lib/node.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/node'>; | ||
} | ||
declare module 'flow-typed/dist/lib/npm/npmLibDefs.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmLibDefs'>; | ||
} | ||
declare module 'flow-typed/dist/lib/npm/npmProjectUtils.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmProjectUtils'>; | ||
} | ||
declare module 'flow-typed/dist/lib/semver.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/semver'>; | ||
} | ||
declare module 'flow-typed/dist/lib/stubUtils.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>; | ||
} | ||
declare module 'flow-typed/dist/lib/validationErrors.js' { | ||
declare module.exports: $Exports<'flow-typed/dist/lib/validationErrors'>; | ||
} |
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,86 @@ | ||
// flow-typed signature: 70f8099c896120a6e0625971ac1532e7 | ||
// flow-typed version: <<STUB>>/seamless-immutable_v^7.1.2/flow_v0.46.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* 'seamless-immutable' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module 'seamless-immutable' { | ||
declare module.exports: any; | ||
} | ||
|
||
// sources: https://github.com/rtfeldman/seamless-immutable/issues/121 | ||
// -> | ||
// https://github.com/ajhyndman/fantasia/blob/master/flow/libs/seamless-immutable.d.js | ||
// | ||
// | ||
// declare module 'seamless-immutable' { | ||
// declare type Immutable<T: Object | Array<*>> = T & { | ||
// // Array methods | ||
// flatMap(fn: Function): Array<any>; | ||
// asObject(fn: Function): Object; | ||
// asMutable(): Array<any>; | ||
// // Object methods | ||
// merge(collection: Array<any> | Object, deep?: Object): Object; | ||
// set(key: string, value: any): Object; | ||
// setIn(keyPath: Array<string>, value: any): Object; | ||
// update(key: string, fn: Function): Object; | ||
// updateIn(keyPath: Array<string>, fn: Function): Object; | ||
// without(fn: Function): Object; | ||
// without(keys: Array<string>): Object; | ||
// without(...keys: Array<string>): Object; | ||
// asMutable(): Array<any> | Object; | ||
// }; | ||
// | ||
// declare function from<T: Object | Array<*>> (spec: T): Immutable<T>; | ||
// | ||
// declare type Default = { | ||
// from: typeof from; | ||
// isImmutable: (x: *) => boolean | ||
// }; | ||
// | ||
// declare module.exports: Default; | ||
// } | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module 'seamless-immutable/seamless-immutable.development' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'seamless-immutable/seamless-immutable.development.min' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'seamless-immutable/seamless-immutable.production.min' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'seamless-immutable/src/seamless-immutable' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module 'seamless-immutable/seamless-immutable.development.js' { | ||
declare module.exports: $Exports<'seamless-immutable/seamless-immutable.development'>; | ||
} | ||
declare module 'seamless-immutable/seamless-immutable.development.min.js' { | ||
declare module.exports: $Exports<'seamless-immutable/seamless-immutable.development.min'>; | ||
} | ||
declare module 'seamless-immutable/seamless-immutable.production.min.js' { | ||
declare module.exports: $Exports<'seamless-immutable/seamless-immutable.production.min'>; | ||
} | ||
declare module 'seamless-immutable/src/seamless-immutable.js' { | ||
declare module.exports: $Exports<'seamless-immutable/src/seamless-immutable'>; | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve this declaration