mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Merge pull request #21217 from Microsoft/fix20146
Symbol-named properties do not need to align with string indexer type
This commit is contained in:
@@ -22298,7 +22298,8 @@ namespace ts {
|
||||
indexType: Type,
|
||||
indexKind: IndexKind): void {
|
||||
|
||||
if (!indexType) {
|
||||
// ESSymbol properties apply to neither string nor numeric indexers.
|
||||
if (!indexType || isKnownSymbol(prop)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user