@@ -83,7 +83,7 @@ namespace CypressCommandsTests {
8383 arg // $ExpectType string
8484 } )
8585 Cypress . Commands . add ( 'newCommand' , { prevSubject : true } , ( subject , arg ) => {
86- subject // $ExpectType unknown
86+ subject // $ExpectType any
8787 arg // $ExpectType string
8888 return
8989 } )
@@ -113,11 +113,11 @@ namespace CypressCommandsTests {
113113 arg // $ExpectType string
114114 } )
115115 Cypress . Commands . add ( 'newCommand' , { prevSubject : 'element' } , ( subject , arg ) => {
116- subject // $ExpectType JQuery <HTMLElement>
116+ subject // $ExpectType JQueryWithSelector <HTMLElement>
117117 arg // $ExpectType string
118118 } )
119119 Cypress . Commands . add ( 'newCommand' , { prevSubject : [ 'element' ] } , ( subject , arg ) => {
120- subject // $ExpectType JQuery <HTMLElement>
120+ subject // $ExpectType JQueryWithSelector <HTMLElement>
121121 arg // $ExpectType string
122122 } )
123123 Cypress . Commands . add ( 'newCommand' , { prevSubject : [ 'element' , 'document' , 'window' ] } , ( subject , arg ) => {
@@ -126,7 +126,7 @@ namespace CypressCommandsTests {
126126 } else if ( subject instanceof Document ) {
127127 subject // $ExpectType Document
128128 } else {
129- subject // $ExpectType JQuery <HTMLElement>
129+ subject // $ExpectType JQueryWithSelector <HTMLElement>
130130 }
131131 arg // $ExpectType string
132132 } )
@@ -136,7 +136,7 @@ namespace CypressCommandsTests {
136136 } else if ( subject instanceof Document ) {
137137 subject // $ExpectType Document
138138 } else if ( subject ) {
139- subject // $ExpectType JQuery <HTMLElement>
139+ subject // $ExpectType JQueryWithSelector <HTMLElement>
140140 } else {
141141 subject // $ExpectType void
142142 }
@@ -173,7 +173,7 @@ namespace CypressCommandsTests {
173173 } )
174174 Cypress . Commands . addAll ( { prevSubject : true } , {
175175 newCommand : ( subject , arg ) => {
176- subject // $ExpectType unknown
176+ subject // $ExpectType any
177177 arg // $ExpectType any
178178 return
179179 } ,
@@ -215,13 +215,13 @@ namespace CypressCommandsTests {
215215 } )
216216 Cypress . Commands . addAll ( { prevSubject : 'element' } , {
217217 newCommand : ( subject , arg ) => {
218- subject // $ExpectType JQuery <HTMLElement>
218+ subject // $ExpectType JQueryWithSelector <HTMLElement>
219219 arg // $ExpectType any
220220 }
221221 } )
222222 Cypress . Commands . addAll ( { prevSubject : [ 'element' ] } , {
223223 newCommand : ( subject , arg ) => {
224- subject // $ExpectType JQuery <HTMLElement>
224+ subject // $ExpectType JQueryWithSelector <HTMLElement>
225225 arg // $ExpectType any
226226 }
227227 } )
@@ -232,7 +232,7 @@ namespace CypressCommandsTests {
232232 } else if ( subject instanceof Document ) {
233233 subject // $ExpectType Document
234234 } else {
235- subject // $ExpectType JQuery <HTMLElement>
235+ subject // $ExpectType JQueryWithSelector <HTMLElement>
236236 }
237237 arg // $ExpectType any
238238 }
@@ -244,7 +244,7 @@ namespace CypressCommandsTests {
244244 } else if ( subject instanceof Document ) {
245245 subject // $ExpectType Document
246246 } else if ( subject ) {
247- subject // $ExpectType JQuery <HTMLElement>
247+ subject // $ExpectType JQueryWithSelector <HTMLElement>
248248 } else {
249249 subject // $ExpectType void
250250 }
@@ -271,7 +271,7 @@ namespace CypressCommandsTests {
271271 originalFn . apply ( this , [ arg ] ) // $ExpectType Chainable<number>
272272 } )
273273 Cypress . Commands . overwrite < 'type' , 'element' > ( 'type' , ( originalFn , element , text , options ?: Partial < Cypress . TypeOptions & { sensitive : boolean } > ) => {
274- element // $ExpectType JQuery <HTMLElement>
274+ element // $ExpectType JQueryWithSelector <HTMLElement>
275275 text // $ExpectType string
276276
277277 if ( options && options . sensitive ) {
0 commit comments