TypeScript/tests/cases/fourslash/addMemberNotInNodeModulesDeclarationFile.ts

20 lines
426 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
2019-03-27 12:06:21 +01:00
// @noImplicitReferences: true
// @traceResolution: true
// @Filename: /node_modules/foo/types.d.ts
//// interface Response {}
2019-03-27 12:06:21 +01:00
// @Filename: /node_modules/foo/package.json
//// { "types": "types.d.ts" }
// @Filename: /foo.ts
//// import { Response } from 'foo'
//// declare const resp: Response
//// resp.test()
2019-03-27 12:06:21 +01:00
goTo.file('/foo.ts')
verify.not.codeFixAvailable()