TypeScript/tests/cases/fourslash/addMemberNotInNodeModulesDeclarationFile.ts
2019-03-27 19:06:21 +08:00

20 lines
426 B
TypeScript

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