ember-api-docs
ember-api-docs copied to clipboard
Some Classes don't show inline examples
Some of the inline examples aren't showing up because their names don't match up with the name in mappings.json
| doc name | mappings name |
|---|---|
| Adapter | TestAdapter |
| EmberObject | Object |
| ContainerProxyMixin | none |
| EmberArray | Array |
| EmberError | Error |
| EventTarget | none |
| Promise | no localName |
| Router | EmberRouter |
- [x] Adapter
- [x] EmberObject
- [x] ContainerProxyMixin
- [x] EmberArray
- [x] EmberError
- [x] EventTarget
- [ ] Promise
- [x] Router
Promise is interesting... its the only place where a class is not using the default import, and instead we want folks to use import { Promise } from 'rsvp';. Interesting that we didn't do import Promise from 'rsvp/promise'; instead.
Regardless, working on a PR to do some more smart reading of mappings.json to detect non-default class imports.