Home > @rushstack/typings-generator > TypingsGenerator

TypingsGenerator class

This is a simple tool that generates .d.ts files for non-TS files.

Signature:

export declare class TypingsGenerator 

Constructors

Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the TypingsGenerator class

Properties

Property Modifiers Type Description
_options   ITypingsGeneratorOptions  

Methods

Method Modifiers Description
generateTypingsAsync()    
registerDependency(target, dependency)   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.
runWatcherAsync()