File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
javascript/ql/test/library-tests/UnderlyingTypes Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ import * as express from 'express' ;
2+
3+ interface Options {
4+ handle ( req : express . Request ) : void ; // $ hasUnderlyingType='express'.Request
5+ }
6+
7+ declare function doSomething ( options : Options ) ;
8+
9+ function t1 ( ) {
10+ doSomething ( {
11+ handle ( req ) { // $ MISSING: hasUnderlyingType='express'.Request
12+ }
13+ } ) ;
14+ }
15+
16+ function t2 ( callback : ( ( opts : Options ) => void ) | undefined ) {
17+ callback ( {
18+ handle ( req ) { } // $ MISSING: hasUnderlyingType='express'.Request
19+ } )
20+ callback ! ( {
21+ handle ( req ) { } // $ MISSING: hasUnderlyingType='express'.Request
22+ } )
23+ }
24+
25+ function t3 ( ) : Options {
26+ return {
27+ handle ( req ) { } // $ MISSING: hasUnderlyingType='express'.Request
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments