Cosmetic fixes

This commit is contained in:
Ryan Cavanaugh
2016-05-19 15:51:24 -07:00
committed by Andrew Branch
parent 52e7d8c802
commit 95befc623b
2 changed files with 2 additions and 2 deletions

View File

@@ -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}\``);

View File

@@ -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'}`);