-
Notifications
You must be signed in to change notification settings - Fork 21
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
Thoughts on adding some-sort of output customisation #109
Comments
I'm not sure how urgent these changes are for you, but if you can wait, this might be something for you!
I'd be fine with exposing the ts-morph project 👍
I think A general question, are you using it as CLI, or do you interact with |
Not an immediate rush, I have things working with my custom fork. But it is not an ideal solution, as updates to the main repo will be difficult to back-port.
This seems to be specific to queries against field data right? What I am wanting is
Directly interacting with
That is essentially what I was getting at with |
@AndrewLeedham I created a new PR #123 addressing this issue. Would your case be covered with this? (still WIP though) |
version 2.0.0 which features custom rendering just got released |
I have been working on adding this package to one of our internal projects, and in order to facilitate the needs there I have forked this package and some modifications: AndrewLeedham@5a4c117. The main change is exporting to the type
CMSEntry<ContentTypeId, Fields>
instead ofEntry<Fields>
, as well as exporting a Union of all the types and some other minor tweaks. I am curious on your thoughts on a first class way of supporting something like this, ideas I have been considering:contentful.js
repo to add the strongly typedEntry
as an option, something like:and extend this repo to export things in the format I am after.
Add a method to the
CFDefinitionsBuilder
which exposes thets-morph
project, so it can be modified before generating the types.Integrate https://github.com/webpack/tapable into the package so the rendering can be modified as needed.
The text was updated successfully, but these errors were encountered: