@@ -49,17 +49,17 @@ type NewReactJSXElementConstructor<P> =
49
49
>P : Symbol(P, Decl(jsxElementType.tsx, 16, 35))
50
50
51
51
declare global {
52
- >global : Symbol(global, Decl(jsxElementType.tsx, 18, 48))
52
+ >global : Symbol(global, Decl(jsxElementType.tsx, 18, 48), Decl(jsxElementType.tsx, 98, 25) )
53
53
54
54
namespace JSX {
55
- >JSX : Symbol(JSX, Decl(react16.d.ts, 2493, 12), Decl(jsxElementType.tsx, 20, 16))
55
+ >JSX : Symbol(JSX, Decl(react16.d.ts, 2493, 12), Decl(jsxElementType.tsx, 20, 16), Decl(jsxElementType.tsx, 101, 16) )
56
56
57
57
type ElementType = string | NewReactJSXElementConstructor<any>;
58
58
>ElementType : Symbol(ElementType, Decl(jsxElementType.tsx, 21, 17))
59
59
>NewReactJSXElementConstructor : Symbol(NewReactJSXElementConstructor, Decl(jsxElementType.tsx, 13, 30))
60
60
61
61
interface IntrinsicElements {
62
- >IntrinsicElements : Symbol(IntrinsicElements, Decl(react16.d.ts, 2514, 86), Decl(jsxElementType.tsx, 22, 67))
62
+ >IntrinsicElements : Symbol(IntrinsicElements, Decl(react16.d.ts, 2514, 86), Decl(jsxElementType.tsx, 22, 67), Decl(jsxElementType.tsx, 102, 17) )
63
63
64
64
['my-custom-element']: React.DOMAttributes<unknown>;
65
65
>['my-custom-element'] : Symbol(IntrinsicElements['my-custom-element'], Decl(jsxElementType.tsx, 23, 33))
@@ -272,3 +272,25 @@ function f1<T extends (props: {}) => React.ReactElement<any>>(Component: T) {
272
272
<Unresolved foo="abc" />;
273
273
>foo : Symbol(foo, Decl(jsxElementType.tsx, 98, 11))
274
274
275
+ // regression test for intrinsic containing `:`
276
+ declare global {
277
+ >global : Symbol(global, Decl(jsxElementType.tsx, 18, 48), Decl(jsxElementType.tsx, 98, 25))
278
+
279
+ namespace JSX {
280
+ >JSX : Symbol(JSX, Decl(react16.d.ts, 2493, 12), Decl(jsxElementType.tsx, 20, 16), Decl(jsxElementType.tsx, 101, 16))
281
+
282
+ interface IntrinsicElements {
283
+ >IntrinsicElements : Symbol(IntrinsicElements, Decl(react16.d.ts, 2514, 86), Decl(jsxElementType.tsx, 22, 67), Decl(jsxElementType.tsx, 102, 17))
284
+
285
+ ['fbt:enum']: { knownProp: string };
286
+ >['fbt:enum'] : Symbol(IntrinsicElements['fbt:enum'], Decl(jsxElementType.tsx, 103, 33))
287
+ >'fbt:enum' : Symbol(IntrinsicElements['fbt:enum'], Decl(jsxElementType.tsx, 103, 33))
288
+ >knownProp : Symbol(knownProp, Decl(jsxElementType.tsx, 104, 21))
289
+ }
290
+ }
291
+ }
292
+
293
+ <fbt:enum knownProp="accepted" unknownProp="rejected" />;
294
+ >knownProp : Symbol(knownProp, Decl(jsxElementType.tsx, 109, 9))
295
+ >unknownProp : Symbol(unknownProp, Decl(jsxElementType.tsx, 109, 30))
296
+
0 commit comments