You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for writing this app, since cheerio can't seem to release a new version since 6 months!
I wonder why you choose to return a Promise<unknown> instead of a promise with the structure of the template (types)?
I guess its not easy to derive the type from the piped values, but how about adding a template argument to the function where we can specifiy the resulting objects shape?
Or have you looked at [zod](https://www.npmjs.com/package/zod) which is completely typesafe and also supports the concept of pipes (althought differently named).
The text was updated successfully, but these errors were encountered:
Thanks for writing this app, since cheerio can't seem to release a new version since 6 months!
I wonder why you choose to return a
Promise<unknown>
instead of a promise with the structure of the template (types)?I guess its not easy to derive the type from the piped values, but how about adding a template argument to the function where we can specifiy the resulting objects shape?
Or have you looked at
[zod](https://www.npmjs.com/package/zod)
which is completely typesafe and also supports the concept of pipes (althought differently named).The text was updated successfully, but these errors were encountered: