question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docs] All top-level function exports from @ember/string are missing

See original GitHub issue

Despite this being marked as @public

https://github.com/emberjs/ember.js/blob/bc505f596c69d585d3f5b65dc50df6d802460bdb/packages/%40ember/string/index.ts#L249-L267

It does not show up as a top-level export here https://www.emberjs.com/api/ember/3.4/modules/@ember%2Fstring

We should be seeing

  • dasherize
  • camelize
  • capitalize
  • classify
  • decamelize
  • fmt
  • htmlSafe
  • loc
  • underscore
  • w

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jenwebercommented, Sep 10, 2018

I chatted with Mike a bit about this, but I think it’s due to missing @static, or missing a class declaration in the file, or the files are in a path that’s not watched by YUIdoc

0reactions
Windviscommented, Apr 14, 2022

They are defined as class methods on the String class so you have to click the String class to see them.

After looking at some other functions in the API docs, I think we need to add @static and @for @ember/string to each function, and maybe delete the String class comment block, to make them appear as functions in the API docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exported functions are not showing after import in NodeJS
I'm trying to import some async-await functions from a file. However, it seems that none of the exports become visible after importing. I'm ......
Read more >
ember-cli-utilities - npm Package Health Analysis - Snyk
Snyk scans all the packages in your projects for vulnerabilities and ... Looks like ember-cli-utilities is missing a security policy.
Read more >
ember-source | Yarn - Package Manager
Ember.js is a JavaScript framework that greatly reduces the time, effort and resources needed to build any web application. It is focused on...
Read more >
Summary - Ember RFCs
There's a giant list of classes and functions with no hints about how they're related. The API documentation reflects this.
Read more >
Read ember 101 - Leanpub
The default export for the ember package is a namespace that // contains all the classes and functions for Ember that are specified...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found