-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initialize Package #1
Conversation
There is a purposely malformed `package.json` file in one of the dependencies (for testing purposes). We are using `.flowconfig` to ignore this file. See issue: facebook/flow#2364.
3fa4152
to
aa0fb64
Compare
b77f5e0
to
aece6fe
Compare
aece6fe
to
8f1c02f
Compare
Use `flow-typed` to download the `library definitions` for the current version of `jest`.
@@ -0,0 +1,13 @@ | |||
[ignore] | |||
.*/node_modules/resolve/test/resolver/malformed_package_json/package.json |
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.
See: facebook/flow#2364
e9b4122
to
d801d9f
Compare
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.
Blocking on the PrimitiveDep<>
type. I would rather not support opaque types, at least until it proves to be an issue.
@@ -0,0 +1,3 @@ | |||
# @freckle/react-hooks | |||
|
|||
Provides a collection of React hooks. |
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.
useExtraDeps
is only used internally, but I see that type CallbackFn
and unCallbackFn
is imported across the Freckle frontends. It's exported in this extracted module to avoid cyclical dependencies. After use-safe-callback
is extracted, these should be documented
cd1c983
to
fbaf418
Compare
fbaf418
to
ad2f6d5
Compare
@@ -0,0 +1,9 @@ | |||
// @flow | |||
|
|||
export type { PrimitiveDep, CallbackFn, ExtraDeps } from "./use-extra-deps"; |
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.
See: facebook/flow#1379
Extract
useExtraDeps
fromentities
.Note that the test suite for
useExtraDeps
has been ported over and passes.As a further smoke test, I was able to add this package to
entities
via:The test suite
entities/.../use-extra-deps/index.test.js
passed when usingimport {useExtraDeps} from '@freckle/react-hooks'
. I was also able to useimport { type CallbackFn, type PrimitiveDep, type ExtraDeps, useExtraDeps } from '@freckle/react-hooks'
inentities/.../use-async/index.js
and that test suite also passed.