liquidjs icon indicating copy to clipboard operation
liquidjs copied to clipboard

All render methods return `any` or `Promise<any>`

Open svallory opened this issue 1 month ago • 2 comments

Hi there! Thank you for maintaining this project!

I'm a newcomer and I'm trying to add liquidjs as an engine to hypergen before it's official release. The problem is that all render methods return any. Should I expect them to return anything other than a string? If so, what can they return?

Thanks is advance!

svallory avatar Nov 05 '25 03:11 svallory

It’s for keepOutputType, when set and only one token is rendered. We can improve typing by overloading I guess.

I am happy with exposing additional types :)

harttle avatar Nov 05 '25 03:11 harttle

I would really appreciate that! It would make things a lot easier for newcommers

svallory avatar Nov 19 '25 21:11 svallory