Replies: 1 comment 5 replies
-
One pattern I like to use are For example, instead of importing from
Lots of ways to name this, but the basic pattern of augmenting a module this way works well to accomodate small helper functions. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An app built with fp-ts contains a lot of small functions. How do you organize them? Utils? Model? Something else?
I used to use a models directory e.g.
models/user.ts
ormodels/workout
because those small functions belong to the business model. Maybe it's probably the best approach. WDYT?Beta Was this translation helpful? Give feedback.
All reactions