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 making node-jq! It's been really useful for a project I'm working on.
I noticed a small thing, where it looks like when you use run with the output option set to 'pretty', the return type of the function is Promise<object | string> instead of Promise<string>. I think it should be the latter because as I understand it, calling run(..., { output: 'pretty') should always result in a string, but maybe I'm oversimplifying.
I'm using a workaround for this right now, but would be nice if the types could be updated so that when the output option is specified to "pretty" the return type is explicitly just Promise<string>: