Replies: 1 comment
-
If someone have a proposal of another helper function to be implemented comment here. I should had made a pool for the three API designs, now it's late. React to this comment with 😄 for 1, with 🎉 for 2 and with ❤️ for 3, leave a comment if you have some other proposal. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some helper functions could be implemented in the library. Some proposals:
interateChildren(folder)
returns an iterable that returns all children from a folder:getChildrenByPath(folder, 'path/to/children')
returns an children based on a specified pathQuestion: how to import those helper functions? Here are three proposals:
Pros: It avoids making the bundle size larger. Cons: the API design is too different from the existing one.
Pros: It also avoids making the bundle size larger and the API design is more similar to the existing one. Cons: Is harder to implement.
Pros: The API design is more similar to the existing one and is easy to implement. Cons: it increases the bundle size.
Proposals 1 and 2 doesn't exclude each other, is possible to export an install function and isolated functions. I prefer proposal 1 by the way.
Beta Was this translation helpful? Give feedback.
All reactions