-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
import best practices #1003
Comments
I found myself (and I guess this is the more common approach among other
|
I find writing imports by hand tedious and always rely on autocomplete/autoimport. Firstly I tried aliasing (fixing clashes by hand) but finally came to named imports from fp-ts index: import { option, either } from 'fp-ts'; |
@raveclassic Interesting. Isn't |
@steida except types :) only Downside - the whole |
@raveclassic I like it. It's verbose but explicit and with autocomplete. As for tree shaking, it does not work reliably anyway when some other lib like monocle-ts is imported, because it will use So, |
@raveclassic Still, I would love to solve tree shaking across fp-ts ecosystem anyway. It seems it's almost ready. |
As a result, in the app, I would use |
📖 Documentation
When you are using both Option and IO, what is your best practice? * or aliasing?
The text was updated successfully, but these errors were encountered: