Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reflect): additional type predicates for
isXyzType
methods (#4491)
This helps downstream consumers to not have to add type annotations themselves when using these methods. Before: ```ts function needsInterface(type: reflect.InterfaceType) {} if (type.isInterfaceType()) { needsInterface(type as reflect.InterfaceType); } ``` After: ```ts function needsInterface(type: reflect.InterfaceType) {} if (type.isInterfaceType()) { needsInterface(type); } ``` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information