Home > @rushstack/typings-generator > TypingsGenerator > registerDependency

TypingsGenerator.registerDependency() method

Register file dependencies that may effect the typings of a target file. Note: This feature is only useful in watch mode. The registerDependency method must be called in the body of parseAndGenerateTypings every time because the registry for a file is cleared at the beginning of processing.

Signature:

registerDependency(target: string, dependency: string): void;

Parameters

Parameter Type Description
target string  
dependency string  

Returns:

void