Skip to content

Filling in an implementation using VS Code will expand types #15562

@Tyriar

Description

@Tyriar
type Foo = [string, number];

interface Bar {
  test(a: Foo): void;
}

class Baz implements Bar{
}

Using fill in Baz implementation quick fix:

type Foo = [string, number];

interface Bar {
  test(a: Foo): void;
}

class Baz implements Bar {
  test(a: [string, number]): void {
    throw new Error("Method not implemented.");
  }
}

I expect:

class Baz implements Bar {
  test(a: Foo): void {
    throw new Error("Method not implemented.");
  }
}

/cc @mjbvz

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.VS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions