You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments