-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Question: How to make getType() work in TypeScript #16849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jpoly1219 Thanks for your question. Do you maybe have some example project from which you're missing type information? I expect the type information to be there if your database was created from a TypeScript codebase. |
Hi @jketema! Unfortunately I can't share code due to... reasons :) I will say that I have a tsconfig.json in the root directory, but I created a database in a subdirectory that gets ignored when compiling with tsc (I added the subdirectory to my excluded list). Does Otherwie, is there a setting that I need to change, or some dependencies that I need to install? If I know what allows for the I used the following commands to make my database:
Thank you for your patience! |
In that case please create a small example that demonstrates the problem. |
Ok, I made a small example. Check it out here: https://github.com/jpoly1219/codeql-gettype-example After cloning and running |
Thanks for the small example. So there needs to be a |
Hello, I was hoping to get some help about using
getType()
in Typescript files. The docs say the following:I don't seem to be able to get any calls to
.getType()
to work. Am I missing a setup process to enable the "full" TypeScript extraction? How should I set that up?For more context, the following query does not return anything:
I believe this is the reason why
.getType()
isn't returning anything, since there are noType
classes to be found. What is theType
class and what makes a TypeScript codebase have one?Thank you!
The text was updated successfully, but these errors were encountered: