Skip to content

What is inner intended for? #145

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

Closed
tmcw opened this issue Jan 29, 2017 · 1 comment
Closed

What is inner intended for? #145

tmcw opened this issue Jan 29, 2017 · 1 comment

Comments

@tmcw
Copy link
Contributor

tmcw commented Jan 29, 2017

I'm implementing support for inner in documentation.js and I'm unfortunately very confused about how it is intended to be used.

So far:

  • I haven't found any JavaScript concepts called 'inner' that it might map to
  • The documentation documents an static property being marked as inner. What does this mean?
  • Do inner members exist when you create a new instance of a class, like instance members, or do they exist all the time, like static members?
  • Is there something else I'm missing?

Thanks for any help!

@hegemonic
Copy link
Contributor

The @inner tag identifies a symbol that's not exported by a class or module. Here's a example of a module with an inner class:

/** @module foo */

/**
 * Some class.
 */
class MyClass {
    constructor() {}
}

In this example, you don't actually need to use the @inner tag on the class, because JSDoc automatically figures out that it's an inner symbol. It's mostly there for use in virtual doclets, like the first example in the docs.

Hope that helps!

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

No branches or pull requests

2 participants