Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show how to use in template imports #207

Open
MichalBryxi opened this issue Apr 18, 2024 · 0 comments · May be fixed by #208
Open

Show how to use in template imports #207

MichalBryxi opened this issue Apr 18, 2024 · 0 comments · May be fixed by #208

Comments

@MichalBryxi
Copy link

  • When I look at the index export I can see that for example is-empty is actually exported as export { default as isEmpty } from './helpers/is-empty.ts';
  • But the README says that it's supposed to be used like: {{if (is-empty a)}}
  • This together with the template imports example can lead people (it did to me) to conclusion that import should look like: import { is-empty } from 'ember-truth-helpers';
  • This won't work.

So to avoid confusion I think the usage table in README should show all possible imports.

MichalBryxi added a commit to MichalBryxi/ember-truth-helpers that referenced this issue Apr 18, 2024
@MichalBryxi MichalBryxi linked a pull request Apr 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant