Skip to content

Commit

Permalink
feat: update to typescript@4.7.1-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed May 13, 2022
1 parent 7761028 commit 7fdbf2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -112,10 +112,10 @@
"tmp": "^0.2.1",
"ts-node": "^10.7.0",
"tslint": "^6.1.3",
"typescript": ">=3.3.1 <4.6.0 || 4.7.0-beta"
"typescript": ">=3.3.1 <4.6.0 || 4.7.1-rc"
},
"resolutions": {
"typescript": "4.7.0-beta",
"typescript": "4.7.1-rc",
"@types/node": "^17.0.31",
"pretty-format": "^28.1.0",
"//": "Pin jest to v28 across the repo",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/parser.ts
Expand Up @@ -35,7 +35,7 @@ const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <4.8.0';
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
* List them all separately here, so we can automatically create the full string
*/
const SUPPORTED_PRERELEASE_RANGES: string[] = ['4.7.0-beta'];
const SUPPORTED_PRERELEASE_RANGES: string[] = ['4.7.0-beta', '4.7.1-rc'];
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
const isRunningSupportedTypeScriptVersion = semver.satisfies(
ACTIVE_TYPESCRIPT_VERSION,
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/src/eslint-utils/applyDefault.ts
Expand Up @@ -20,7 +20,9 @@ function applyDefault<TUser extends readonly unknown[], TDefault extends TUser>(
return options;
}

options.forEach((opt, i) => {
// For avoiding the type error
// `This expression is not callable. Type 'unknown' has no call signatures.ts(2349)`
(options as unknown[]).forEach((opt: unknown, i: number) => {
if (userOptions[i] !== undefined) {
const userOpt = userOptions[i];

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -14092,10 +14092,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@*, typescript@4.7.0-beta, "typescript@>=3.3.1 <4.6.0 || 4.7.0-beta", typescript@^4.4.3, typescript@^4.5.3, typescript@^4.5.5, typescript@~4.6.3:
version "4.7.0-beta"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.0-beta.tgz#15952f24d4177479ca3d19f09436ad8c69a30563"
integrity sha512-m+CNL8lzHyHDxYYDTI+pm5hw5/bufYVGan2bokPyJY/y9C/4W/PCWMtYZ0vV9fLXbEL57elMeoaz9Evxs8UQ+A==
typescript@*, typescript@4.7.1-rc, "typescript@>=3.3.1 <4.6.0 || 4.7.1-rc", typescript@^4.4.3, typescript@^4.5.3, typescript@^4.5.5, typescript@~4.6.3:
version "4.7.1-rc"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.1-rc.tgz#23a0517d36c56de887b4457f29e2d265647bbd7c"
integrity sha512-EQd2NVelDe6ZVc2sO1CSpuSs+RHzY8c2n/kTNQAHw4um/eAXY+ZY4IKoUpNK0wO6C5hN+XcUXR7yqT8VbwwNIQ==

ua-parser-js@^0.7.30:
version "0.7.31"
Expand Down

0 comments on commit 7fdbf2d

Please sign in to comment.