Content-Length: 890 | pFad | http://github.com/typescript-eslint/typescript-eslint/pull/10045.diff
thub.com diff --git a/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx b/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx index e254a6ca4c3e..37a1e36e6217 100644 --- a/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx +++ b/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx @@ -19,6 +19,8 @@ For example, given `type A = string` and `type T = string | A`, this rule would This rule also disallows explicitly listing `undefined` in a type union when a function parameter is marked as optional. Doing so is unnecessary. +Please note that this check only applies to parameters, not properties. +Therefore, it does not conflict with the [`exactOptionalPropertyTypes`](https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes) TypeScript compiler setting.Fetched URL: http://github.com/typescript-eslint/typescript-eslint/pull/10045.diff
Alternative Proxies: