Maintains a collection of option declarations split into TypeDoc options
and TypeScript options. Ensures options are of the correct type for calling
code.
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.
argv (0) - Must be read first since it should change the files read when
passing --options or --tsconfig.
typedoc-json (100) - Read next so that it can specify the tsconfig.json file to read.
tsconfig-json (200) - Last config file reader, cannot specify the typedoc.json file to read.
argv (300) - Read argv again since any options set there should override those set in config
files.
This function explicitly provides a way out of the strict typing enforced
by addDeclaration. It should only be used with careful validation
of the declaration map. Internally, it is only used for adding TS options
Removes a declared option.
WARNING: This is probably a bad idea. If you do this you will probably cause a crash
when code assumes that an option that it declared still exists.
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.