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
You can add @taggedTemplate when it's an external to achieve what you want. What you can't do as of now is have a regular rescript function emitted as a proper tagged template. But I suppose that'd be possible to add too.
I just want to add this would be a great feature for reading the compiled output. A tagged template could be formatted by Prettier and highlighted by VSCode extensions.
It would also be good for working with linting and AST transformation tools. As-is ReScript would need to do something weird like this:
I've just tried out tagged template, and it would be great if they stayed as tagged templates instead of turning into arrays like here:
https://rescript-lang.org/try?version=v12.0.0-alpha.7&module=esmodule&code=KYDwLsBOB2CGA2ACAtgTwCqwOYDECu0AxmAJYD20iAXIgBSySSyoA8AzmJCdFgHwA0iBk1YByAA4NYyXgEpEAXl6JRZPGHHrFiAEQA3BDoBQRgFJsAdPDJZaaTLgLFy0AAYAzMmVeyjQA
I use the
postgres
package and it returns the following error:The text was updated successfully, but these errors were encountered: