TypeScript/tests/baselines/reference/undeclaredModuleError.errors.txt
2014-07-12 17:30:19 -07:00

27 lines
No EOL
1.2 KiB
Text

==== tests/cases/compiler/undeclaredModuleError.ts (3 errors) ====
import fs = require('fs');
~~~~
!!! Cannot find external module 'fs'.
function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {}
function join(...paths: string[]) {}
function instrumentFile(covFileDir: string, covFileName: string, originalFilePath: string) {
fs.readFile(originalFilePath, () => {
readdir(covFileDir, () => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
} , (error: Error, files: {}[]) => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
files.forEach((file) => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var fullPath = join(IDoNotExist);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~
!!! Cannot find name 'IDoNotExist'.
} );
~~~~~~~~~~~~~~~~~~~~
} );
~~~~~~~~~~~~~~~
!!! Supplied parameters do not match any signature of call target.
} );
}