The name of this component as set by the @Component
decorator.
The converter used to create the declaration reflections.
The deserializer used to restore previously serialized JSON output.
Proxy based shortcuts for internationalization keys.
Internationalization module which supports translating according to
the lang
option.
The logger that should be used to output messages.
The renderer used to generate the documentation output.
The serializer used to generate JSON output.
Static
Readonly
EVENT_Emitted after plugins have been loaded and options have been read, but before they have been frozen. The listener will be given an instance of Application.
Static
Readonly
EVENT_Emitted after a project has been deserialized from JSON. The listener will be given an instance of ProjectReflection.
Static
Readonly
EVENT_Emitted when validation is being run. The listener will be given an instance of ProjectReflection.
Static
Readonly
VERSIONThe version number of TypeDoc.
Return the application / root component instance.
Internal
entryInternal
entryInternal
langReturn the owner of this component.
Internal
skipRun the converter for the given set of files and return the generated reflections.
An instance of ProjectReflection on success, undefined otherwise.
Render HTML for the given project
Write the reflections to a json file.
The path and file name of the target file.
Whether the JSON file could be written successfully.
Retrieve a plugin instance.
The instance of the plugin or undefined if no plugin with the given class is attached.
Gets the entry points to be documented according to the current entryPoints
and entryPointStrategy
options.
May return undefined if entry points fail to be expanded.
Protected
initializeStops listening to an event.
the event to stop listening to.
the function to remove from the listener array.
Rest
...args: ApplicationEvents[K]Starts listening to an event.
the event to listen to.
function to be called when an this event is emitted.
Rest
...args: ApplicationEvents[K]optional priority to insert this hook with.
Emits an event to all currently subscribed listeners.
the event to emit.
Rest
...args: ApplicationEvents[K]any arguments required for the event.
Static
bootstrapInitialize TypeDoc without loading plugins.
Options to set during initialization
Option readers to use to discover options from config files.
Static
bootstrapInitialize TypeDoc, loading plugins if applicable.
The default TypeDoc main application class.
This class holds the two main components of TypeDoc, the Converter and the Renderer. When running TypeDoc, first the Converter is invoked which generates a ProjectReflection from the passed in source files. The ProjectReflection is a hierarchical model representation of the TypeScript project. Afterwards the model is passed to the Renderer which uses an instance of Theme to generate the final documentation.
Both the Converter and the Renderer emit a series of events while processing the project. Subscribe to these Events to control the application flow or alter the output.
Remarks
Access to an Application instance can be retrieved with Application.bootstrap or Application.bootstrapWithPlugins. It can not be constructed manually.