Skip to content

TypeScript: After moving file into new destination its extensions declare module '../types' { are not changing path of module being extending #61639

Closed as not planned
@psnet

Description

@psnet

Does this issue occur when all extensions are disabled?: Yes

Version: 1.99.0 (user setup)
Commit: 4437686ffebaf200fa4a6e6e67f735f3edf24ada

Steps to Reproduce:

  1. Lets have file types.ts
interface CoolInterface {
    something: boolean;
}
  1. Lets have file thisFileWillBeMoved.ts
declare module './types' {
    interface CoolInterface {
        newProp?: boolean;
    }
}
  1. Lets move file thisFileWillBeMoved.ts into newly created folder test
  2. After moving file into new destination its extensions declare module './types' { are not changing path of module being extending. Must be:
declare module '../types' {  // path must be changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not a DefectThis behavior is one of several equally-correct options

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions