Class PostProcess
Index
Constructors
Methods
Constructors
constructor
Returns PostProcess
Methods
Staticprocess
- process(
options: {
dependencies?: boolean;
filepath: string;
logStart?: boolean;
output?: string;
processors: Iterable<ProcessorFunction>;
},
): voidPerforms postprocessing on a given Typescript declaration file in place. You may provide an alternate output filepath to not overwrite the source file.
Parameters
- options: {
dependencies?: boolean;
filepath: string;
logStart?: boolean;
output?: string;
processors: Iterable<ProcessorFunction>;
}Options
Optionaldependencies?: booleanWhen true generate dependencies graph analysis.
filepath: string
Source DTS file to process.
OptionallogStart?: booleanWhen true verbosely log processor start.
Optionaloutput?: stringAlternate output filepath for testing.
processors: Iterable<ProcessorFunction>
List of processor functions.
Returns void
- options: {
Provides management of execution of creating a
ts-morphproject and coordinating postprocessing ProcessorFunction functions acting on thets-morphSourceFile. The inputfilepathshould be a bundled Typescript declaration file. Any postprocessing is automatically saved to the same file.