Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zpdDG4gta8XKpMCd opened this issue Dec 26, 2015 · 2 comments · Fixed by #28340
Closed
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Fixed A PR has been merged for this issue Help Wanted You can do this VS Code Tracked There is a VS Code equivalent to this issue

Comments

@zpdDG4gta8XKpMCd
Copy link

// 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>;
        }>;
    } {
}
@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter labels Dec 28, 2015
@mhegazy mhegazy added the Help Wanted You can do this label Jan 7, 2016
@mhegazy mhegazy added this to the Community milestone Jan 7, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Jan 7, 2016

//cc: @saschanaz

@mhegazy mhegazy added Help Wanted You can do this and removed Help Wanted You can do this labels Feb 20, 2016
@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Apr 11, 2017
@DanielRosenwasser DanielRosenwasser added the Fixed A PR has been merged for this issue label Nov 9, 2018
@DanielRosenwasser
Copy link
Member

Thanks @saschanaz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Fixed A PR has been merged for this issue Help Wanted You can do this VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
4 participants