You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of #9705
In this PR, I've tried to align `TSMappedType` with TS-ESLint.
>
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/ast-spec/src/type/TSMappedType/spec.ts
```js
// BEFORE
{
type: "TSMappedType",
typeParameter: {
name: Identifier,
constraint: TypeNode,
},
// ...
}
// AFTER
{
type: "TSMappedType",
key: Identifier,
constraint: TypeNode,
// ...
}
```
And also fixed serializer for `optional` and `readonly` types.
They are defined as `boolean | '+' | '-' | undefined`, but we use `true
| '+' | '-' | null`.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: overlookmotel <theoverlookmotel@gmail.com>
0 commit comments