Skip to content

Translate wrongly for JQuery TypeScript #11850

@avatar21

Description

@avatar21

TypeScript Version: 2.0.3 / nightly (2.1.0-dev.201xxxxx)

Code

// A *self-contained* demonstration of the problem follows...
import jq from "jquery";
jq('#pnlTest').text(apple.eat());

Expected behavior:
const jquery_1 = require("jquery");
jquery_1('#pnlTest').text(apple.eat());
Actual behavior:
const jquery_1 = require("jquery");
jquery_1.default('#pnlTest').text(apple.eat());

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions