Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature of #1497
Classes
Added "class" property to detect that object is class
Classes forbidden to compare because there is a lot of deep cases that might leads to bug with prototypes.
Extends MetadataCollection
Added find method of type for objects. I think it's good idea to have possibility to get
ts.Type
by anyMetadata
.It requires in my case, because metadata doesn't cover this methods declarations:
I've noticed that it's hard to compare unions:
This will be true, because after fail on
foo
prop,a.bar === b.bar
becauseundefined === undefined
And this unions a lot of corner cases. I just forbidden it. Left only for primitive types.
Development & Test Environment
I've faced with problem that tests take too much time. I've added possibility to add flag that will filter tests by folder.
Also added watch mode for root: