Is there anyway to tell if a type a global/built-in type #986
-
interface Array<T> {
x: any;
} For example here, is there any way to tell that |
Beta Was this translation helpful? Give feedback.
Answered by
kdy1
Apr 14, 2023
Replies: 2 comments 1 reply
-
You can use Example: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
awareness481
-
This seems to have been answered, so close it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
env.get_global_type
.Example:
stc/crates/stc_ts_file_analyzer/src/analyzer/expr/mod.rs
Line 1072 in 32d80ed