mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-05 05:04:26 +00:00
* Improve signature of ShallowWrapper.filter and ReactWrapper.filter to return appropriate specific types when the apram is a ComponentClass or StatelessComponent. * Improve signature of filter() to return a wrapper with HTMLAttributes props when a string CSS selector is provided. * Improve unit tests to properly test various signatures of methods that are expected to return wrappers with different props types. * [enzyme] Fix signature of "filter" when param type does not narrow down the possible type of the element/component collection. * [enzyme] Fix incorrect use of "this" return type in "filter" signatures.