Skip to content

Services shows diagnostic when augmenting relative path #20017

@ghost

Description

TypeScript Version: 2.7.0-dev.20171114

Steps

Create a.ts and type:

export const x = 0;

Create b.ts and type:

export {};
declare module "./a" {
    export const y: number;
}

Expected behavior:

No error.

Actual behavior:

In services, see error: Invalid module name in augmentation, module './a' cannot be found.
No error on command line.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions