镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Infer from usage codefix should work in JS  #20113

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.

Activity

  1. ghost added
    SuggestionAn idea for TypeScript
    on Nov 17, 2017
  2. Repository owner unassigned on Oct 8, 2018
  3. sandersn commented on Oct 18, 2018

    @sandersn
    Member

    Fixed by #27610; I guess github doesn't use comments to auto-close bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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