TypeScript/tests/cases/compiler/declarationFilesWithTypeReferences4.ts
Vladimir Matveev 50e2fd87da only emit /// types reference for a symbol in d.ts file if all declarations of a symbol come from type reference directives (#11872)
* only emit /// types reference for a symbol in d.ts file if all declarations of a symbol come from type reference directives

* pass proper value for current directory when compiling .d.ts files
2016-10-26 17:15:04 -07:00

12 lines
229 B
TypeScript

// @declaration: true
// @filename: /a/node_modules/@types/node/index.d.ts
interface Error {
stack2: string;
}
// @filename: /a/app.ts
/// <reference types="node"/>
function foo(): Error {
return undefined;
}