39.8.0 • Published 14 days ago

@ckeditor/typedoc-plugins v39.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

TypeDoc plugins overview

npm version CircleCI

Overview

This repository consists of few plugins which extend the capabilities of TypeDoc.

Before enabling plugins from the package, you need to install it first.

npm install @ckeditor/typedoc-plugins

Below you can find the detailed overview of available plugins.

Module fixer

The plugin reads the module name specified in the @module annotation.

import type { TypeDefinition } from '...';

/**
 * @module package/file
 */

For the example specified above, a name of the parsed module should be equal to package/file.

The import statements may be specified above the "@module" block code. In such a case, the default module parser from typedoc returns the module name based on a path relative to the project root.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/module-fixer' )
    ]
}

Symbol fixer

The plugin renames Symbol.* definitions with the JSDoc style.

  • Typedoc: [iterator]() → Iterator
  • JSDoc: Symbol.iterator() → Iterator

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/symbol-fixer' )
    ]
}

Interface augmentation fixer

The plugin tries to fix an interface, that has been extended (augmented) from the outside (from another module) in the re-exported index.ts file. When the extending "declare module ..." declaration contains the full package name, it points to the index.ts file instead of the actual source file. The goal is to add missing properties from interfaces to their source locations.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/interface-augmentation-fixer' )
    ]
}

Event parameter fixer

The plugin injects the eventInfo parameter (an instance of the EventInfo class) as the first parameter for each event reflection.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/event-param-fixer' )
    ]
}

Events inheritance fixer

The plugin takes care of inheriting events, which are created manually via the @eventName annotation.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/event-inheritance-fixer' )
    ]
}

Purge private API

The plugin removes reflections collected from private packages (marked as "private": true in their package.json). To disable the mechanism, add the @publicApi annotation at the beginning of a file.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/purge-private-api-docs' )
    ]
}

Tag @error

The plugin collects error definitions from the @error annotation.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/tag-error' )
    ]
}

Tag @eventName

The plugin collects event definitions from the @eventName annotation and assigns them as the children of the class or the Observable interface.

We are not using the @event annotation, known from the JSDoc specification, because it has a special meaning in the TypeDoc, and it would be difficult to get it to work as we expect.

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/tag-event' )
    ]
}

Tag @observable

To enable the plugin, add the following path to available plugins:

{
    plugin: [
        // ...
        require.resolve( '@ckeditor/typedoc-plugins/lib/tag-observable' )
    ]
}

Changelog

See the CHANGELOG.md file.

39.8.0

14 days ago

39.7.0

15 days ago

39.7.0-alpha.4

20 days ago

39.7.0-alpha.3

23 days ago

39.7.0-alpha.2

1 month ago

39.6.3

2 months ago

39.7.0-alpha.1

2 months ago

39.7.0-alpha.0

2 months ago

39.6.2

2 months ago

39.6.1

3 months ago

39.6.0

3 months ago

39.5.1

4 months ago

39.5.0

5 months ago

39.4.0

5 months ago

39.3.0

5 months ago

39.2.1

6 months ago

39.2.0

7 months ago

39.1.0

8 months ago

39.0.0

8 months ago

38.4.1

8 months ago

38.1.4

9 months ago

38.0.5

10 months ago

38.3.0

9 months ago

38.2.1

9 months ago

38.1.2

10 months ago

38.0.3

10 months ago

38.4.0

9 months ago

38.3.1

9 months ago

38.2.2

9 months ago

38.1.3

10 months ago

38.0.4

10 months ago

38.1.0

10 months ago

38.2.0

9 months ago

38.1.1

10 months ago

38.0.2

11 months ago

38.0.1

11 months ago

38.0.0

11 months ago

38.0.0-alpha.0

12 months ago

37.0.0

1 year ago

37.0.1

1 year ago

36.0.1

1 year ago

36.0.0

1 year ago

35.0.2

1 year ago

35.0.3

1 year ago

35.0.4

1 year ago

35.0.5

1 year ago

35.0.6

1 year ago

35.0.0

1 year ago

35.0.1

1 year ago

34.1.1

1 year ago

34.1.2

1 year ago

34.1.3

1 year ago

34.1.0

1 year ago

34.0.1

1 year ago

34.0.2

1 year ago

33.0.1

1 year ago

34.0.0

1 year ago

33.0.0

1 year ago

32.1.2

1 year ago

32.1.1

1 year ago

32.1.0

1 year ago