mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Unfortunately, the checking code isn't reusable in a large chunk, so I copied it from `getPropertyTypeForIndexType`. It still might be better to extract the four lines to report the error into its own function.