Home > @rushstack/typings-generator > TypingsGenerator > registerDependency
TypingsGenerator.registerDependency() method
Register file dependencies that may effect the typings of a consumer 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(consumer: string, rawDependency: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
consumer | string | |
rawDependency | string |
Returns:
void