Skip to content

arrow function emit emit error #11377

Description

TypeScript Version: nightly latest

Code

{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"sourceMap": false,
"lib": [
"es6", "dom"
]
},
"exclude": [
"node_modules"
]
}
constfoo=(x: string)=>null;

Expected behavior:

Gives js

varfoo=function(x){returnnull;};

Actual behavior:

varfoo=function(x: string){returnnull;};

Activity

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

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: API: TransformsRelates to the public transform APIFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions