Adds an option declaration to the container with extra type checking to ensure that the runtime type is consistent with the declared type.
The option declaration that should be added.
Adds an option declaration to the container.
The option declaration that should be added.
Adds an option reader that will be used to read configuration values from the command line, configuration files, or other locations.
Clones the options, intended for use in packages mode.
Internal
Gets the set compiler options.
Gets a declaration by one of its names.
Gets all declared options.
Gets the file names discovered through reading a tsconfig file.
Get the help message to be displayed to the user if --help
is passed.
Gets the project references - used in solution style tsconfig setups.
Gets all of the TypeDoc option values defined in this option container.
Discover similar option names to the given name, for use in error reporting.
Gets a value for the given option key, throwing if the option has not been declared.
Gets a value for the given option key, throwing if the option has not been declared.
Checks if the given option's value is deeply strict equal to the default.
Checks if the given option's value is deeply strict equal to the default.
Resets the option bag to all default values. If a name is provided, will only reset that name.
Optional
name: keyof TypeDocOptionMapResets the option bag to all default values. If a name is provided, will only reset that name.
Optional
name: stringInternal
Take a snapshot of option values now, used in tests only.
Sets the compiler options that will be used to get a TS program.
Sets the given declared option. Throws if setting the option fails.
Optional
configPath: stringthe directory to resolve Path type values against
Sets the given declared option. Throws if setting the option fails.
Optional
configPath: stringthe directory to resolve Path type values against
Internal
Take a snapshot of option values now, used in tests only.
Maintains a collection of option declarations split into TypeDoc options and TypeScript options. Ensures options are of the correct type for calling code.
Option Discovery
Since plugins commonly add custom options, and TypeDoc does not permit options which have not been declared to be set, options must be read twice. The first time options are read, a noop logger is passed so that any errors are ignored. Then, after loading plugins, options are read again, this time with the logger specified by the application.
Options are read in a specific order.