Revision 8d715ff53eb94acad32ab0ee8652569ae434eacd authored by Nathan Shively-Sanders on 18 October 2021, 16:00:00 UTC, committed by GitHub on 18 October 2021, 16:00:00 UTC
* Error on mapped types with properties

1. Error on properties of type literals with computed properties whose name is a
binary expression with `in`, because that's a good sign of a mapped
type.
2. Parse following properties on mapped types, and error on them.
3. Stop checking computed property names in (1) to avoid producing
errors based on misinterpreting mapped type syntax as an expression.

* add comment in types.ts

* Update API again

* Check interfaces and classes too

* Add missed check in updateMappedTypeNode
1 parent 26aea0d
History
File Mode Size
tsc -rwxr-xr-x 45 bytes
tsserver -rwxr-xr-x 50 bytes

back to top