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

Function properties are documented as methods #1932

Closed
MajorMeerkatThe3rd opened this issue May 17, 2022 · 2 comments
Closed

Function properties are documented as methods #1932

MajorMeerkatThe3rd opened this issue May 17, 2022 · 2 comments
Labels
question Question about functionality

Comments

@MajorMeerkatThe3rd
Copy link

Search terms

function, interface, property

Question

interface myInterface {
  // property that can be set
  callbackProperty?: () => void;

  // method that can be used
  callbackMethod(): void;
}

Both of these are documented as methods, event though the first one show be a property. How can I change that? Maybe a bug?

@MajorMeerkatThe3rd MajorMeerkatThe3rd added the question Question about functionality label May 17, 2022
@MajorMeerkatThe3rd
Copy link
Author

MajorMeerkatThe3rd commented May 17, 2022

Found a workaround by defining the property like this:

interface myInterface {
  // property that can be set
  callbackProperty: (() => void) | undefined;

  // method that can be used
  callbackMethod(): void;
}

@Gerrit0
Copy link
Collaborator

Gerrit0 commented May 17, 2022

#1637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

2 participants