@@ -15,11 +15,18 @@ x('urlset', {xmlns}) // $ExpectType Element
15
15
x ( 'urlset' , { xmlns} , 'string' ) // $ExpectType Element
16
16
x ( 'urlset' , { xmlns} , [ 'string' , 'string' ] ) // $ExpectType Element
17
17
x ( 'urlset' , { xmlns} , x ( 'loc' ) , 'string' ) // $ExpectType Element
18
+ x ( 'urlset' , { xmlns} , x ( 'loc' ) , 100 ) // $ExpectType Element
18
19
x ( 'urlset' , { xmlns} , x ( 'loc' ) ) // $ExpectType Element
19
20
x ( 'urlset' , { xmlns} , x ( 'loc' ) , x ( 'loc' ) ) // $ExpectType Element
20
21
x ( 'urlset' , { xmlns} , [ x ( 'loc' ) , x ( 'loc' ) ] ) // $ExpectType Element
21
22
x ( 'urlset' , { xmlns} , [ ] ) // $ExpectType Element
22
23
24
+ const xmlNumberAttribute = 100
25
+ x ( 'urlset' , { xmlNumberAttribute} , 'string' ) // $ExpectType Element
26
+ x ( 'urlset' , { xmlNumberAttribute} , 100 ) // $ExpectType Element
27
+ x ( 'urlset' , { xmlNumberAttribute} , x ( 'loc' ) , 100 ) // $ExpectType Element
28
+ x ( 'urlset' , { xmlNumberAttribute} , [ ] ) // $ExpectType Element
29
+
23
30
x ( ) // $ExpectError
24
31
x ( false ) // $ExpectError
25
32
x ( 'urlset' , x ( 'loc' ) , { xmlns} ) // $ExpectError
0 commit comments