jmurphyau / ember-truth-helpers

Ember HTMLBars Helpers for {{if}} & {{unless}}: not, and, or, eq & is-array
MIT License
706 stars 95 forks source link

Fix Glint types by converting helpers to plain functions #188

Closed NullVoxPopuli closed 1 year ago

NullVoxPopuli commented 1 year ago

This is a breaking change without the polyfill, and would require ember-source@4.5 without said polyfill.

This conversion to normal functions cooincidentally fixes the triple slash issue, described

SergeAstapov commented 1 year ago

@NullVoxPopuli thanks for submitting this! Do you see this solve any TS issues we tried to solve and couldn't in #185?

NullVoxPopuli commented 1 year ago

perhaps! image

SergeAstapov commented 1 year ago

@NullVoxPopuli and other who follow: I tried to bump this in our app (via https://github.com/jmurphyau/ember-truth-helpers/tree/helpers-as-plain-functions-dist) and see many of tests fail, will look into root cause why behavior is different.

Glint and TS were happy though.

NullVoxPopuli commented 1 year ago

I tried to bump this in our app

do you have a reproduction?

SergeAstapov commented 1 year ago

I tried to bump this in our app

do you have a reproduction?

sorry, it's behind VPN. I'm digging what exactly is the issue and if it's our app code or the lib code issue

NullVoxPopuli commented 9 months ago

Made a tool to help out in the future: https://github.com/NullVoxPopuli/fix-bad-declaration-output