We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TypeScript Version:
Code
// A self-contained demonstration of the problem follows... async function getBar(params: number) { return 1; }
transform into with --target ES6
--target ES6
Expected behavior:
Actual behavior:
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments)).next()); }); }; function getBar(params) { return __awaiter(this, void 0, void 0, function* () { return 1; }); }
The text was updated successfully, but these errors were encountered:
I believe you asking for --t ESNext target. see #5361 (comment)
--t ESNext
this is tracked bu #5361
Sorry, something went wrong.
Ah, okay. Thank you.
No branches or pull requests
TypeScript Version:
Code
transform into with
--target ES6
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: