TypeScript 3.7 enables the creation of declaration files from JavaScript, aiding library authors in bootstraping definitions and allowing comparisons with manually typed definitions. However, limitations include the need for specific module flags and potential interference of exported classnames with module names. The document illustrates the use of the TypeScript compiler with examples of code generation and the resultant declaration files.