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
.devcontainer
.github
.vscode
bin
doc
lib
loc
scripts
src
tests
.dockerignore -rw-r--r-- 1006 bytes
.editorconfig -rw-r--r-- 188 bytes
.eslintignore -rw-r--r-- 60 bytes
.eslintrc.json -rw-r--r-- 5.7 KB
.gitattributes -rw-r--r-- 42 bytes
.gitignore -rw-r--r-- 2.9 KB
.mailmap -rw-r--r-- 18.7 KB
.npmignore -rw-r--r-- 425 bytes
.yarnrc -rw-r--r-- 27 bytes
AUTHORS.md -rw-r--r-- 8.3 KB
CODE_OF_CONDUCT.md -rw-r--r-- 333 bytes
CONTRIBUTING.md -rw-r--r-- 11.8 KB
CopyrightNotice.txt -rw-r--r-- 812 bytes
Dockerfile -rw-r--r-- 252 bytes
Gulpfile.js -rw-r--r-- 31.5 KB
LICENSE.txt -rw-r--r-- 9.0 KB
README.md -rw-r--r-- 5.2 KB
SECURITY.md -rw-r--r-- 2.7 KB
ThirdPartyNoticeText.txt -rw-r--r-- 36.9 KB
package-lock.json -rw-r--r-- 370.7 KB
package.json -rw-r--r-- 4.1 KB

README.md

back to top