Are there type-narrowing utilities? #2945
Answered by Gerrit0
NullVoxPopuli asked this question in Q&A
-
| For example, I have a const a = project.getChildByName(module); // ^ Reflection | undefinedand this can have a and eventually I'd like to narrow to things that have Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by Gerrit0 Apr 28, 2025
Replies: 2 comments 2 replies
-
| You're probably after |
Beta Was this translation helpful? Give feedback.
0 replies
-
| I haven't been able to find where that can be imported from. TS is telling me that all importables Relfections don't have isDeclaration |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
It sounds like you have an outdated project or something then, it's a member