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

Documentation for one interface is not generated and produces 'does not have any documentation' warning #2290

Closed
jstritch opened this issue May 27, 2023 · 1 comment
Labels
bug Functionality does not match expectation
Milestone

Comments

@jstritch
Copy link

Search terms

missing documentation

Expected Behavior

When the documentation is present, it appears in the output and does not produce a warning.

Actual Behavior

Some of the documentation is not generated and a warning is produced.

Steps to reproduce the bug

Configure validation

{
  "validation": {
    "notDocumented": true
  }
}

Declare and document the interface.

/**
* ConsoleDataHandler defines the callback signature required to
* obtain data from a command's stdout or stderr streams as it executes.
* ConsoleDataHandler callbacks are specified by {@link ApiOptions.outHandler}
* and {@link ApiOptions.errHandler}.
*
* Uncaught Errors thrown by ConsoleDataHandler functions are
* logged to console.error by easy-git-annex.
* An application may override this behavior by
* catching and handling any error in the callback.
*
* The bind function may be used to pass `this` and other parameters.
* Refer to the
* [Function.prototype.bind() documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind)
* for additional information.
* @category API Options
*/
export interface ConsoleDataHandler {
  /**
   * @param data The recently generated console output.
   */
  (data: string): void;
}
  1. clone https://github.com/jstritch/easy-git-annex.git
  2. npm ci
  3. npm run typedoc
  4. observe the warning [warning] ConsoleDataHandler, defined in ./src/interfaces/console-data-handler.ts, does not have any documentation.
  5. observe the part before the interface is omitted from the HTML but other parts are not. See attached screen shot. Other interfaces in the project are working as expected.

Screenshot from 2023-05-27 12-26-38

Environment

  • Typedoc version: 0.24.7
  • TypeScript version: 5.0.4
  • Node.js version: v20.2.0
  • OS: Linux, macOS, and Windows
@jstritch jstritch added the bug Functionality does not match expectation label May 27, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented May 29, 2023

Ah, yep... signatures are tricky. Fairly easy fix at least.

@Gerrit0 Gerrit0 added this to the v0.24.8 milestone Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants