diff --git a/package.json b/package.json index c960ab8c8..f71482bfb 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "semver": "7.3.5", "string-width": "4.2.2", "strip-ansi": "6.0.0", - "typescript": "4.3.5", + "typescript": "4.4.2", "unicode-regex": "3.0.0", "unified": "9.2.1", "vnopts": "1.0.2", diff --git a/tests/format/misc/errors/typescript/__snapshots__/jsfmt.spec.js.snap b/tests/format/misc/errors/typescript/__snapshots__/jsfmt.spec.js.snap index fedade34c..bea1eaebd 100644 --- a/tests/format/misc/errors/typescript/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/misc/errors/typescript/__snapshots__/jsfmt.spec.js.snap @@ -47,9 +47,9 @@ exports[`module-attributes-static.ts [typescript] format 1`] = ` `; exports[`newline-before-arrow.ts [typescript] format 1`] = ` -"';' expected. (1:7) +"Unexpected keyword or identifier. (1:1) > 1 | async x - | ^ + | ^ 2 | => x 3 |" `; diff --git a/yarn.lock b/yarn.lock index 7c6a03854..03a7d9dbb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6404,10 +6404,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86" + integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ== unbox-primitive@^1.0.1: version "1.0.1"