8000 Infer from usage codefix should work in JS · Issue #20113 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Infer from usage codefix should work in JS  #20113
Closed
@ghost

Description

TypeScript Version: 2.7.0-dev.20171117

Code

function f(x) {
    return x + 1;
}

Expected behavior:

/** @param {number} x */
function f(x) {
    return x + 1;
}

Actual behavior:

No fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0