We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efea150 commit 3d87d19Copy full SHA for 3d87d19
2 files changed
javascript/ql/test/library-tests/UnderlyingTypes/globals.ts
@@ -0,0 +1,10 @@
1
+function t1(el: HTMLElement) { } // $ hasUnderlyingType=HTMLElement
2
+
3
+/**
4
+ * @param {HTMLInputElement} el
5
+ */
6
+function t2(el) { // $ hasUnderlyingType=HTMLInputElement
7
+}
8
9
+function t3(req: Express.Request) { // $ hasUnderlyingType=Express.Request
10
javascript/ql/test/library-tests/UnderlyingTypes/namespaceImport.ts
@@ -6,7 +6,7 @@ function t1(e: typeof express) { // $ hasUnderlyingType='express'
function t2(req: express.Request) { // $ hasUnderlyingType='express'.Request
}
-function t3(req: Request) { // none, not in scope
+function t3(req: Request) { // $ hasUnderlyingType=Request - not in scope, refers to a global
11
12
type E = typeof express;
0 commit comments