Skip to content

Commit ffb35a3

Browse files
committed
test: add test for it
1 parent c36fe23 commit ffb35a3

8 files changed

+273
-6
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(8,4): error TS2322: Type '{ class: string; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
2+
Property 'class' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'. Did you mean 'className'?
3+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(9,4): error TS2322: Type '{ for: string; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
4+
Property 'for' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
5+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(10,8): error TS2322: Type '{ for: string; }' is not assignable to type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'.
6+
Property 'for' does not exist on type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'. Did you mean 'htmlFor'?
7+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(11,8): error TS2322: Type '{ for: string; class: string; }' is not assignable to type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'.
8+
Property 'for' does not exist on type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'. Did you mean 'htmlFor'?
9+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(12,9): error TS2769: No overload matches this call.
10+
Overload 1 of 2, '(props: Readonly<{ className?: string; htmlFor?: string; }>): MyComp', gave the following error.
11+
Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
12+
Property 'class' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'className'?
13+
Overload 2 of 2, '(props: { className?: string; htmlFor?: string; }, context?: any): MyComp', gave the following error.
14+
Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
15+
Property 'class' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'className'?
16+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(13,10): error TS2322: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'.
17+
Property 'class' does not exist on type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'. Did you mean 'className'?
18+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(14,9): error TS2769: No overload matches this call.
19+
Overload 1 of 2, '(props: Readonly<{ className?: string; htmlFor?: string; }>): MyComp', gave the following error.
20+
Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
21+
Property 'for' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'htmlFor'?
22+
Overload 2 of 2, '(props: { className?: string; htmlFor?: string; }, context?: any): MyComp', gave the following error.
23+
Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
24+
Property 'for' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'htmlFor'?
25+
tests/cases/compiler/spellingSuggestionJSXAttribute.tsx(15,10): error TS2322: Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'.
26+
Property 'for' does not exist on type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'. Did you mean 'htmlFor'?
27+
28+
29+
==== tests/cases/compiler/spellingSuggestionJSXAttribute.tsx (8 errors) ====
30+
/// <reference path="/.lib/react16.d.ts" />
31+
import * as React from "react";
32+
33+
function MyComp2(props: { className?: string, htmlFor?: string }) {
34+
return null!;
35+
}
36+
class MyComp extends React.Component<{ className?: string, htmlFor?: string }> { }
37+
<a class="" />;
38+
~~~~~
39+
!!! error TS2322: Type '{ class: string; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
40+
!!! error TS2322: Property 'class' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'. Did you mean 'className'?
41+
<a for="" />; // should have no fix
42+
~~~
43+
!!! error TS2322: Type '{ for: string; }' is not assignable to type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
44+
!!! error TS2322: Property 'for' does not exist on type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
45+
<label for="" />;
46+
~~~
47+
!!! error TS2322: Type '{ for: string; }' is not assignable to type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'.
48+
!!! error TS2322: Property 'for' does not exist on type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'. Did you mean 'htmlFor'?
49+
<label for="" class="" />;
50+
~~~
51+
!!! error TS2322: Type '{ for: string; class: string; }' is not assignable to type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'.
52+
!!! error TS2322: Property 'for' does not exist on type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'. Did you mean 'htmlFor'?
53+
<MyComp class="" />;
54+
~~~~~
55+
!!! error TS2769: No overload matches this call.
56+
!!! error TS2769: Overload 1 of 2, '(props: Readonly<{ className?: string; htmlFor?: string; }>): MyComp', gave the following error.
57+
!!! error TS2769: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
58+
!!! error TS2769: Property 'class' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'className'?
59+
!!! error TS2769: Overload 2 of 2, '(props: { className?: string; htmlFor?: string; }, context?: any): MyComp', gave the following error.
60+
!!! error TS2769: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
61+
!!! error TS2769: Property 'class' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'className'?
62+
<MyComp2 class="" />;
63+
~~~~~
64+
!!! error TS2322: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'.
65+
!!! error TS2322: Property 'class' does not exist on type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'. Did you mean 'className'?
66+
<MyComp for="" />;
67+
~~~
68+
!!! error TS2769: No overload matches this call.
69+
!!! error TS2769: Overload 1 of 2, '(props: Readonly<{ className?: string; htmlFor?: string; }>): MyComp', gave the following error.
70+
!!! error TS2769: Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
71+
!!! error TS2769: Property 'for' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'htmlFor'?
72+
!!! error TS2769: Overload 2 of 2, '(props: { className?: string; htmlFor?: string; }, context?: any): MyComp', gave the following error.
73+
!!! error TS2769: Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'.
74+
!!! error TS2769: Property 'for' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp> & Readonly<{ children?: ReactNode; }> & Readonly<{ className?: string; htmlFor?: string; }>'. Did you mean 'htmlFor'?
75+
<MyComp2 for="" />;
76+
~~~
77+
!!! error TS2322: Type '{ for: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'.
78+
!!! error TS2322: Property 'for' does not exist on type 'IntrinsicAttributes & { className?: string; htmlFor?: string; }'. Did you mean 'htmlFor'?
79+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//// [spellingSuggestionJSXAttribute.tsx]
2+
/// <reference path="/.lib/react16.d.ts" />
3+
import * as React from "react";
4+
5+
function MyComp2(props: { className?: string, htmlFor?: string }) {
6+
return null!;
7+
}
8+
class MyComp extends React.Component<{ className?: string, htmlFor?: string }> { }
9+
<a class="" />;
10+
<a for="" />; // should have no fix
11+
<label for="" />;
12+
<label for="" class="" />;
13+
<MyComp class="" />;
14+
<MyComp2 class="" />;
15+
<MyComp for="" />;
16+
<MyComp2 for="" />;
17+
18+
19+
//// [spellingSuggestionJSXAttribute.js]
20+
"use strict";
21+
var __extends = (this && this.__extends) || (function () {
22+
var extendStatics = function (d, b) {
23+
extendStatics = Object.setPrototypeOf ||
24+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
26+
return extendStatics(d, b);
27+
};
28+
return function (d, b) {
29+
extendStatics(d, b);
30+
function __() { this.constructor = d; }
31+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32+
};
33+
})();
34+
exports.__esModule = true;
35+
/// <reference path="react16.d.ts" />
36+
var React = require("react");
37+
function MyComp2(props) {
38+
return null;
39+
}
40+
var MyComp = /** @class */ (function (_super) {
41+
__extends(MyComp, _super);
42+
function MyComp() {
43+
return _super !== null && _super.apply(this, arguments) || this;
44+
}
45+
return MyComp;
46+
}(React.Component));
47+
React.createElement("a", { "class": "" });
48+
React.createElement("a", { "for": "" }); // should have no fix
49+
React.createElement("label", { "for": "" });
50+
React.createElement("label", { "for": "", "class": "" });
51+
React.createElement(MyComp, { "class": "" });
52+
React.createElement(MyComp2, { "class": "" });
53+
React.createElement(MyComp, { "for": "" });
54+
React.createElement(MyComp2, { "for": "" });
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
=== tests/cases/compiler/spellingSuggestionJSXAttribute.tsx ===
2+
/// <reference path="react16.d.ts" />
3+
import * as React from "react";
4+
>React : Symbol(React, Decl(spellingSuggestionJSXAttribute.tsx, 1, 6))
5+
6+
function MyComp2(props: { className?: string, htmlFor?: string }) {
7+
>MyComp2 : Symbol(MyComp2, Decl(spellingSuggestionJSXAttribute.tsx, 1, 31))
8+
>props : Symbol(props, Decl(spellingSuggestionJSXAttribute.tsx, 3, 17))
9+
>className : Symbol(className, Decl(spellingSuggestionJSXAttribute.tsx, 3, 25))
10+
>htmlFor : Symbol(htmlFor, Decl(spellingSuggestionJSXAttribute.tsx, 3, 45))
11+
12+
return null!;
13+
}
14+
class MyComp extends React.Component<{ className?: string, htmlFor?: string }> { }
15+
>MyComp : Symbol(MyComp, Decl(spellingSuggestionJSXAttribute.tsx, 5, 1))
16+
>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
17+
>React : Symbol(React, Decl(spellingSuggestionJSXAttribute.tsx, 1, 6))
18+
>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94))
19+
>className : Symbol(className, Decl(spellingSuggestionJSXAttribute.tsx, 6, 38))
20+
>htmlFor : Symbol(htmlFor, Decl(spellingSuggestionJSXAttribute.tsx, 6, 58))
21+
22+
<a class="" />;
23+
>a : Symbol(JSX.IntrinsicElements.a, Decl(react16.d.ts, 2390, 41))
24+
>class : Symbol(class, Decl(spellingSuggestionJSXAttribute.tsx, 7, 2))
25+
26+
<a for="" />; // should have no fix
27+
>a : Symbol(JSX.IntrinsicElements.a, Decl(react16.d.ts, 2390, 41))
28+
>for : Symbol(for, Decl(spellingSuggestionJSXAttribute.tsx, 8, 2))
29+
30+
<label for="" />;
31+
>label : Symbol(JSX.IntrinsicElements.label, Decl(react16.d.ts, 2448, 102))
32+
>for : Symbol(for, Decl(spellingSuggestionJSXAttribute.tsx, 9, 6))
33+
34+
<label for="" class="" />;
35+
>label : Symbol(JSX.IntrinsicElements.label, Decl(react16.d.ts, 2448, 102))
36+
>for : Symbol(for, Decl(spellingSuggestionJSXAttribute.tsx, 10, 6))
37+
>class : Symbol(class, Decl(spellingSuggestionJSXAttribute.tsx, 10, 13))
38+
39+
<MyComp class="" />;
40+
>MyComp : Symbol(MyComp, Decl(spellingSuggestionJSXAttribute.tsx, 5, 1))
41+
>class : Symbol(class, Decl(spellingSuggestionJSXAttribute.tsx, 11, 7))
42+
43+
<MyComp2 class="" />;
44+
>MyComp2 : Symbol(MyComp2, Decl(spellingSuggestionJSXAttribute.tsx, 1, 31))
45+
>class : Symbol(class, Decl(spellingSuggestionJSXAttribute.tsx, 12, 8))
46+
47+
<MyComp for="" />;
48+
>MyComp : Symbol(MyComp, Decl(spellingSuggestionJSXAttribute.tsx, 5, 1))
49+
>for : Symbol(for, Decl(spellingSuggestionJSXAttribute.tsx, 13, 7))
50+
51+
<MyComp2 for="" />;
52+
>MyComp2 : Symbol(MyComp2, Decl(spellingSuggestionJSXAttribute.tsx, 1, 31))
53+
>for : Symbol(for, Decl(spellingSuggestionJSXAttribute.tsx, 14, 8))
54+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
=== tests/cases/compiler/spellingSuggestionJSXAttribute.tsx ===
2+
/// <reference path="react16.d.ts" />
3+
import * as React from "react";
4+
>React : typeof React
5+
6+
function MyComp2(props: { className?: string, htmlFor?: string }) {
7+
>MyComp2 : (props: { className?: string; htmlFor?: string;}) => any
8+
>props : { className?: string; htmlFor?: string; }
9+
>className : string
10+
>htmlFor : string
11+
12+
return null!;
13+
>null! : null
14+
>null : null
15+
}
16+
class MyComp extends React.Component<{ className?: string, htmlFor?: string }> { }
17+
>MyComp : MyComp
18+
>React.Component : React.Component<{ className?: string; htmlFor?: string; }, {}, any>
19+
>React : typeof React
20+
>Component : typeof React.Component
21+
>className : string
22+
>htmlFor : string
23+
24+
<a class="" />;
25+
><a class="" /> : JSX.Element
26+
>a : any
27+
>class : string
28+
29+
<a for="" />; // should have no fix
30+
><a for="" /> : JSX.Element
31+
>a : any
32+
>for : string
33+
34+
<label for="" />;
35+
><label for="" /> : JSX.Element
36+
>label : any
37+
>for : string
38+
39+
<label for="" class="" />;
40+
><label for="" class="" /> : JSX.Element
41+
>label : any
42+
>for : string
43+
>class : string
44+
45+
<MyComp class="" />;
46+
><MyComp class="" /> : JSX.Element
47+
>MyComp : typeof MyComp
48+
>class : string
49+
50+
<MyComp2 class="" />;
51+
><MyComp2 class="" /> : JSX.Element
52+
>MyComp2 : (props: { className?: string; htmlFor?: string; }) => any
53+
>class : string
54+
55+
<MyComp for="" />;
56+
><MyComp for="" /> : JSX.Element
57+
>MyComp : typeof MyComp
58+
>for : string
59+
60+
<MyComp2 for="" />;
61+
><MyComp2 for="" /> : JSX.Element
62+
>MyComp2 : (props: { className?: string; htmlFor?: string; }) => any
63+
>for : string
64+

tests/baselines/reference/tsxSpreadAttributesResolution14.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/jsx/file.tsx(11,38): error TS2322: Type '{ Property1: true; property1: string; property2: number; }' is not assignable to type 'IntrinsicAttributes & AnotherComponentProps'.
2-
Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'.
2+
Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'. Did you mean 'property1'?
33

44

55
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -16,7 +16,7 @@ tests/cases/conformance/jsx/file.tsx(11,38): error TS2322: Type '{ Property1: tr
1616
<AnotherComponent {...props} Property1/>
1717
~~~~~~~~~
1818
!!! error TS2322: Type '{ Property1: true; property1: string; property2: number; }' is not assignable to type 'IntrinsicAttributes & AnotherComponentProps'.
19-
!!! error TS2322: Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'.
19+
!!! error TS2322: Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'. Did you mean 'property1'?
2020
);
2121
}
2222

tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests/cases/conformance/jsx/file.tsx(23,10): error TS2322: Type '{ x: number; y:
66
Types of property 'x' are incompatible.
77
Type 'number' is not assignable to type 'string'.
88
tests/cases/conformance/jsx/file.tsx(24,40): error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'.
9-
Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'.
9+
Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'. Did you mean 'x'?
1010

1111

1212
==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
@@ -50,4 +50,4 @@ tests/cases/conformance/jsx/file.tsx(24,40): error TS2322: Type '{ X: string; x:
5050
let w1 = <Poisoned {...{x: 5, y: "2"}} X="hi" />;
5151
~
5252
!!! error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'.
53-
!!! error TS2322: Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'.
53+
!!! error TS2322: Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Poisoned> & PoisonedProp & { children?: ReactNode; }'. Did you mean 'x'?

tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/jsx/file.tsx(19,16): error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'.
2-
Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'.
2+
Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. Did you mean 'name'?
33
tests/cases/conformance/jsx/file.tsx(27,15): error TS2322: Type 'number' is not assignable to type 'string'.
44
tests/cases/conformance/jsx/file.tsx(29,15): error TS2322: Type '{ naaaaaaame: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'.
55
Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'.
@@ -34,7 +34,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
3434
let b = <Greet naaame='world' />;
3535
~~~~~~
3636
!!! error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'.
37-
!!! error TS2322: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'.
37+
!!! error TS2322: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. Did you mean 'name'?
3838

3939
// OK
4040
let c = <Meet />;

0 commit comments

Comments
 (0)