mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Cosmetic fixes
This commit is contained in:
committed by
Andrew Branch
parent
52e7d8c802
commit
95befc623b
@@ -153,7 +153,6 @@ export function getTypingInfo(directory: string): TypingParseFailResult | Typing
|
||||
}
|
||||
});
|
||||
|
||||
// TODO: Remove type assertion
|
||||
src.typeReferenceDirectives.forEach((ref: { fileName: string }) => {
|
||||
if (referencedLibraries.indexOf(ref.fileName) < 0) {
|
||||
referencedLibraries.push(ref.fileName);
|
||||
@@ -162,6 +161,7 @@ export function getTypingInfo(directory: string): TypingParseFailResult | Typing
|
||||
|
||||
src.getChildren()[0].getChildren().forEach(node => {
|
||||
switch (node.kind) {
|
||||
// TODO: Rename to NamespaceExportDeclaration when upstream compiler updates
|
||||
case ts.SyntaxKind.GlobalModuleExportDeclaration:
|
||||
const globalName = (node as ts.GlobalModuleExportDeclaration).name.getText();
|
||||
log.push(`Found UMD module declaration for global \`${globalName}\``);
|
||||
|
||||
@@ -136,7 +136,7 @@ function createReadme(typing: TypingsData) {
|
||||
lines.push('');
|
||||
lines.push(`Additional Details`)
|
||||
lines.push(` * Last updated: ${(new Date()).toUTCString()}`);
|
||||
lines.push(` * Typings kind: ${typing.kind}`);
|
||||
lines.push(` * File structure: ${typing.kind}`);
|
||||
lines.push(` * Library Dependencies: ${typing.libraryDependencies.length ? typing.libraryDependencies.join(', ') : 'none'}`);
|
||||
lines.push(` * Module Dependencies: ${typing.moduleDependencies.length ? typing.moduleDependencies.join(', ') : 'none'}`);
|
||||
lines.push(` * Global values: ${typing.globals.length ? typing.globals.join(', ') : 'none'}`);
|
||||
|
||||
Reference in New Issue
Block a user