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

Support for added properties in functions to show as functions #625

Open
miguelbogota opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@miguelbogota
Copy link

It seems that the properties added are supported but when they are functions they are not treat them like one.

Example

The following code:

/**
 * Test function.
 *
 * @returns {string} - Returns a string with 'hello world'.
 */
export function test(): string {
  return 'hello world';
}

/**
 * Variable inside the test function.
 */
test.innerVariable = 'inner variable';

/**
 * Function inside the test function.
 *
 * @returns {string} - Returns a string with 'inner function'.
 */
test.innerFunction = (): string => 'inner function';

Returns the following html:

Screenshot 2024-09-06 at 3 01 01 PM

Both innerVariable and innerFunction are shown as variables even though the innerFunction should be shown as a function.

This is a problem since innerFunction is not well documented:

Screenshot 2024-09-06 at 3 04 32 PM
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

1 participant