2014-09-12 22:35:07 +02:00
tests/cases/compiler/undeclaredModuleError.ts(1,21): error TS2307: Cannot find external module 'fs'.
2014-10-04 00:50:38 +02:00
tests/cases/compiler/undeclaredModuleError.ts(8,29): error TS2345: Argument of type '() => void' is not assignable to parameter of type '(stat: any, name: string) => boolean'.
2015-01-20 23:18:22 +01:00
Type 'void' is not assignable to type 'boolean'.
2014-09-12 22:35:07 +02:00
tests/cases/compiler/undeclaredModuleError.ts(11,41): error TS2304: Cannot find name 'IDoNotExist'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/undeclaredModuleError.ts (3 errors) ====
import fs = require('fs');
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2307: Cannot find external module 'fs'.
2014-07-13 01:04:16 +02:00
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, () => {
2014-07-25 02:00:03 +02:00
~~~~~~~
2014-07-13 01:04:16 +02:00
} , (error: Error, files: {}[]) => {
2014-07-25 02:00:03 +02:00
~~~~~~~~~
2014-10-04 00:50:38 +02:00
!!! error TS2345: Argument of type '() => void' is not assignable to parameter of type '(stat: any, name: string) => boolean'.
2015-01-20 23:18:22 +01:00
!!! error TS2345: Type 'void' is not assignable to type 'boolean'.
2014-07-13 01:04:16 +02:00
files.forEach((file) => {
var fullPath = join(IDoNotExist);
~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'IDoNotExist'.
2014-07-13 01:04:16 +02:00
} );
} );
} );
}