Skip to content

Commit

Permalink
feat: bump typescript to 4.8.2 (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Aug 31, 2022
1 parent 09ade0c commit 3124c34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -50,7 +50,7 @@
"json5": "^2.2.1",
"normalize-path": "^3.0.0",
"safe-stable-stringify": "^2.3.1",
"typescript": "~4.7.4"
"typescript": "~4.8.2"
},
"devDependencies": {
"@auto-it/conventional-commits": "^10.37.4",
Expand Down
4 changes: 3 additions & 1 deletion src/TypeFormatter/UnionTypeFormatter.ts
Expand Up @@ -56,7 +56,9 @@ export class UnionTypeFormatter implements SubTypeFormatter {

// Flatten anyOf inside anyOf unless the anyOf has an annotation
for (const def of definitions) {
if (Object.keys(def) === ["anyOf"]) {
const keys = Object.keys(def);

if (keys.length === 1 && keys[0] === "anyOf") {
flattenedDefinitions.push(...(def.anyOf as any));
} else {
flattenedDefinitions.push(def);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -5614,10 +5614,10 @@ typescript-memoize@^1.0.0-alpha.3:
resolved "https://registry.yarnpkg.com/typescript-memoize/-/typescript-memoize-1.1.0.tgz#4a8f512d06fc995167c703a3592219901db8bc79"
integrity sha512-LQPKVXK8QrBBkL/zclE6YgSWn0I8ew5m0Lf+XL00IwMhlotqRLlzHV+BRrljVQIc+NohUAuQP7mg4HQwrx5Xbg==

typescript@~4.7.4:
version "4.7.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==
typescript@~4.8.2:
version "4.8.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790"
integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==

typical@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 3124c34

Please sign in to comment.