1.0.0 • Published 5 years ago

@wcardinal/typedoc-plugin-named-event v1.0.0

Weekly downloads
5
License
Apatche-2.0
Repository
-
Last release
5 years ago

About

TypeDoc plugin to rename events, remove optional flags and @internal tag for documenting events.

interface Class {
  /**
   * @event event-name
   * @internal
   */
  listener?( items:IItem[], transaction:Promise<ITransaction> ): void;
}

Reasons why the method is marked as an optional and an internal is to allow

  • implementation classes to omit a method implementation, and
  • type defition files to ignore this method.

Usage

npm i -D @wcardinal/typedoc-plugin-named-event

TypeDoc automatically detects the plugin.