Skip to content

formatting problem with an object literal as an inlined result type of a function #6252

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd
// given / expected
function _uniteVertices<p extends string, a>(
    minority: Pinned<p, Vertex<a>>,
    majorityCounter: number,
    majority: Pinned<p, Vertex<a>>
): {
    majorityCounter: number;
    vertecis: Pinned<p, {
        oldVertexId: VertexId;
        vertex: Vertex<a>;
    }>;
} {
}
// actual
function _uniteVertices<p extends string, a>(
    minority: Pinned<p, Vertex<a>>,
    majorityCounter: number,
    majority: Pinned<p, Vertex<a>>
): {
        majorityCounter: number;
        vertecis: Pinned<p, {
            oldVertexId: VertexId;
            vertex: Vertex<a>;
        }>;
    } {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueHelp WantedYou can do thisVS 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