Upgrade to ts2.5.3-insiders (#2842)

master
Lucas Azzola 2017-09-27 15:43:17 +10:00 committed by GitHub
parent 3703cb5b07
commit f77e471b0c
5 changed files with 38 additions and 4 deletions

View File

@ -40,7 +40,7 @@
"postcss-selector-parser": "2.2.3",
"postcss-values-parser": "git://github.com/lydell/postcss-values-parser.git#af2c80b2bb558a6e7d61540d97f068f9fa162b38",
"strip-bom": "3.0.0",
"typescript": "2.5.1",
"typescript": "2.5.3",
"typescript-eslint-parser": "git://github.com/eslint/typescript-eslint-parser.git#9c71a627da36e97da52ed2731d58509c952b67ae"
},
"devDependencies": {

View File

@ -0,0 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow_regression.js 1`] = `
const bar = (...varargs:any[]) => {
console.log(varargs);
};
const foo = (x:string):void => (
bar(
x,
() => {},
() => {}
)
);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const bar = (...varargs: any[]) => {
console.log(varargs);
};
const foo = (x: string): void => bar(x, () => {}, () => {});
`;

View File

@ -0,0 +1,11 @@
const bar = (...varargs:any[]) => {
console.log(varargs);
};
const foo = (x:string):void => (
bar(
x,
() => {},
() => {}
)
);

View File

@ -0,0 +1 @@
run_spec(__dirname, { parser: "typescript" });

View File

@ -4053,9 +4053,9 @@ typedarray@^0.0.6:
lodash.unescape "4.0.1"
semver "5.4.1"
typescript@2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.1.tgz#ce7cc93ada3de19475cc9d17e3adea7aee1832aa"
typescript@2.5.3:
version "2.5.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.3.tgz#df3dcdc38f3beb800d4bc322646b04a3f6ca7f0d"
uglify-es@3.0.15:
version "3.0.15"