@@ -8,15 +8,15 @@ First you'll need to install TypeScript >=1.6 from `npm`.
88Once that's done, you'll need to link it from wherever your project resides.
99If you don't link from within a Node project, it will just link globally.
1010
11- ```
11+ ``` sh
1212npm install -g typescript
1313npm link typescript
1414```
1515
1616You will also need the node definition file for some of these samples.
1717To acquire the definition file, run:
1818
19- ```
19+ ``` sh
2020npm install @types/node
2121```
2222
@@ -450,10 +450,7 @@ function watch(rootFileNames: string[], options: ts.CompilerOptions) {
450450 let { line, character } = diagnostic .file .getLineAndCharacterOfPosition (
451451 diagnostic .start !
452452 );
453- console .log (
454- ` Error ${diagnostic .file .fileName } (${line + 1 },${character +
455- 1 }): ${message } `
456- );
453+ console .log (` Error ${diagnostic .file .fileName } (${line + 1 },${character + 1 }): ${message } ` );
457454 } else {
458455 console .log (` Error: ${message } ` );
459456 }
@@ -464,10 +461,7 @@ function watch(rootFileNames: string[], options: ts.CompilerOptions) {
464461// Initialize files constituting the program as all .ts files in the current directory
465462const currentDirectoryFiles = fs
466463 .readdirSync (process .cwd ())
467- .filter (
468- fileName =>
469- fileName .length >= 3 && fileName .substr (fileName .length - 3 , 3 ) === " .ts"
470- );
464+ .filter (fileName => fileName .length >= 3 && fileName .substr (fileName .length - 3 , 3 ) === " .ts" );
471465
472466// Start the watcher
473467watch (currentDirectoryFiles , { module: ts .ModuleKind .CommonJS });
@@ -640,7 +634,6 @@ function generateDocumentation(
640634
641635 // Get the checker, we will use it to find more about classes
642636 let checker = program .getTypeChecker ();
643-
644637 let output: DocEntry [] = [];
645638
646639 // Visit every sourceFile in the program
0 commit comments