Home
last modified time | relevance | path

Searched refs:Prop (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DtsxTypeArgumentResolution.types5 interface Prop {
23 let x = <MyComp<Prop> a={10} b="hi" />; // OK
25 ><MyComp<Prop> a={10} b="hi" /> : JSX.Element
31 x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
32 >x = <MyComp<Prop> a={10} b="hi"></MyComp> : JSX.Element
34 ><MyComp<Prop> a={10} b="hi"></MyComp> : JSX.Element
41 x = <MyComp<Prop> a={10} b={20} />; // error
42 >x = <MyComp<Prop> a={10} b={20} /> : JSX.Element
44 ><MyComp<Prop> a={10} b={20} /> : JSX.Element
51 x = <MyComp<Prop> a={10} b={20}></MyComp>; // error
[all …]
DtsxTypeArgumentResolution.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
28 let x = <MyComp<Prop> a={10} b="hi" />; // OK
31 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
35 x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
38 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
43 x = <MyComp<Prop> a={10} b={20} />; // error
46 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
[all …]
DcheckJsxChildrenProperty2.types5 interface Prop {
17 function Comp(p: Prop) {
18 >Comp : (p: Prop) => JSX.Element
19 >p : Prop
25 >p : Prop
34 >Comp : (p: Prop) => JSX.Element
44 >Comp : (p: Prop) => JSX.Element
52 >Comp : (p: Prop) => JSX.Element
67 >Comp : (p: Prop) => JSX.Element
75 >Comp : (p: Prop) => JSX.Element
[all …]
DtsxTypeArgumentResolution.errors.txt7 tests/cases/conformance/jsx/file.tsx(39,14): error TS2344: Type 'Prop' does not satisfy the constra…
10 tests/cases/conformance/jsx/file.tsx(41,14): error TS2344: Type 'Prop' does not satisfy the constra…
20 interface Prop {
29 let x = <MyComp<Prop> a={10} b="hi" />; // OK
31 x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
33 x = <MyComp<Prop> a={10} b={20} />; // error
36 …d here on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<Prop>> & Prop & { children?:…
38 x = <MyComp<Prop> a={10} b={20}></MyComp>; // error
41 …d here on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<Prop>> & Prop & { children?:…
43 x = <MyComp<Prop, Prop> a={10} b="hi" />; // error
[all …]
DtsxTypeArgumentResolution.js4 interface Prop {
13 let x = <MyComp<Prop> a={10} b="hi" />; // OK
15 x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
17 x = <MyComp<Prop> a={10} b={20} />; // error
19 x = <MyComp<Prop> a={10} b={20}></MyComp>; // error
21 x = <MyComp<Prop, Prop> a={10} b="hi" />; // error
23 x = <MyComp<Prop, Prop> a={10} b="hi"></MyComp>; // error
40 x = <MyComp2<Prop> a={10} b="hi" />; // error
42 x = <MyComp2<Prop> a={10} b="hi"></MyComp2>; // error
48 x = <MyComp2<{a: string}, {b: string}, Prop> a="hi" b="hi" />; // error
[all …]
DcheckJsxChildrenProperty8.types5 interface Prop {
45 function Comp(p: Prop) {
46 >Comp : (p: Prop) => JSX.Element
47 >p : Prop
53 >p : Prop
62 >Comp : (p: Prop) => JSX.Element
70 >Comp : (p: Prop) => JSX.Element
75 >Comp : (p: Prop) => JSX.Element
85 >Comp : (p: Prop) => JSX.Element
90 >Comp : (p: Prop) => JSX.Element
[all …]
DcheckJsxChildrenProperty6.types5 interface Prop {
45 function Comp(p: Prop) {
46 >Comp : (p: Prop) => JSX.Element
47 >p : Prop
53 >p : Prop
64 >Comp : (p: Prop) => JSX.Element
78 >Comp : (p: Prop) => JSX.Element
85 >Comp : (p: Prop) => JSX.Element
101 >Comp : (p: Prop) => JSX.Element
106 >Comp : (p: Prop) => JSX.Element
[all …]
DcheckJsxChildrenProperty1.types5 interface Prop {
17 function Comp(p: Prop) {
18 >Comp : (p: Prop) => JSX.Element
19 >p : Prop
25 >p : Prop
34 >Comp : (p: Prop) => JSX.Element
45 >Comp : (p: Prop) => JSX.Element
52 >Comp : (p: Prop) => JSX.Element
59 >Comp : (p: Prop) => JSX.Element
70 >Comp : (p: Prop) => JSX.Element
DcheckJsxChildrenProperty1.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 >children : Symbol(Prop.children, Decl(file.tsx, 4, 14))
20 function Comp(p: Prop) {
23 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
27 >p.b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
29 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
DcheckJsxChildrenProperty5.types5 interface Prop {
33 function Comp(p: Prop) {
34 >Comp : (p: Prop) => JSX.Element
35 >p : Prop
41 >p : Prop
50 >Comp : (p: Prop) => JSX.Element
61 >Comp : (p: Prop) => JSX.Element
71 >Comp : (p: Prop) => JSX.Element
78 >Comp : (p: Prop) => JSX.Element
87 >Comp : (p: Prop) => JSX.Element
DcheckJsxChildrenProperty7.types5 interface Prop {
45 function Comp(p: Prop) {
46 >Comp : (p: Prop) => JSX.Element
47 >p : Prop
53 >p : Prop
62 >Comp : (p: Prop) => JSX.Element
70 >Comp : (p: Prop) => JSX.Element
75 >Comp : (p: Prop) => JSX.Element
85 >Comp : (p: Prop) => JSX.Element
90 >Comp : (p: Prop) => JSX.Element
[all …]
DjsxCheckJsxNoTypeArgumentsAllowed.symbols18 export interface Prop {
19 >Prop : Symbol(Prop, Decl(component.d.ts, 3, 1))
22 >a : Symbol(Prop.a, Decl(component.d.ts, 5, 23))
25 >b : Symbol(Prop.b, Decl(component.d.ts, 6, 14))
29 import { MyComp, Prop } from "./component";
31 >Prop : Symbol(Prop, Decl(file.jsx, 0, 16))
36 let x = <MyComp<Prop> a={10} b="hi" />; // error, no type arguments in js
DcheckJsxChildrenProperty5.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 >children : Symbol(Prop.children, Decl(file.tsx, 4, 14))
34 function Comp(p: Prop) {
37 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
41 >p.b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
43 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
DtsxReactComponentWithDefaultTypeParameter1.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 declare class MyComp<P = Prop> extends React.Component<P, {}> {
18 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DtsxReactComponentWithDefaultTypeParameter2.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 declare class MyComp<P = Prop> extends React.Component<P, {}> {
18 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DtsxReactComponentWithDefaultTypeParameter3.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 declare class MyComp<P extends Prop> extends React.Component<P, {}> {
18 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DtsxSpreadAttributesResolution8.symbols24 interface Prop {
25 >Prop : Symbol(Prop, Decl(file.tsx, 9, 1))
28 >x : Symbol(Prop.x, Decl(file.tsx, 11, 16))
31 >y : Symbol(Prop.y, Decl(file.tsx, 12, 13))
34 >overwrite : Symbol(Prop.overwrite, Decl(file.tsx, 13, 14))
37 class OverWriteAttr extends React.Component<Prop, {}> {
42 >Prop : Symbol(Prop, Decl(file.tsx, 9, 1))
DtsxDefaultAttributesResolution2.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >x : Symbol(Prop.x, Decl(file.tsx, 2, 16))
11 class Poisoned extends React.Component<Prop, {}> {
16 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DtsxDefaultAttributesResolution3.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >x : Symbol(Prop.x, Decl(file.tsx, 2, 16))
11 class Poisoned extends React.Component<Prop, {}> {
16 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DjsxCheckJsxNoTypeArgumentsAllowed.types15 export interface Prop {
24 import { MyComp, Prop } from "./component";
26 >Prop : any
31 let x = <MyComp<Prop> a={10} b="hi" />; // error, no type arguments in js
33 ><MyComp<Prop> a={10} b="hi" />; // error, no type arguments in js : JSX.Element
36 ><Prop> a={10} b="hi" />; // error, no type arguments in js : JSX.Element
37 >Prop : any
DtsxDefaultAttributesResolution1.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >x : Symbol(Prop.x, Decl(file.tsx, 2, 16))
11 class Poisoned extends React.Component<Prop, {}> {
16 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
DcheckJsxChildrenProperty7.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 >children : Symbol(Prop.children, Decl(file.tsx, 4, 14))
46 function Comp(p: Prop) {
49 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
53 >p.b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
55 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
DcheckJsxChildrenProperty8.symbols5 interface Prop {
6 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
9 >a : Symbol(Prop.a, Decl(file.tsx, 2, 16))
12 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
15 >children : Symbol(Prop.children, Decl(file.tsx, 4, 14))
46 function Comp(p: Prop) {
49 >Prop : Symbol(Prop, Decl(file.tsx, 0, 32))
53 >p.b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
55 >b : Symbol(Prop.b, Decl(file.tsx, 3, 14))
DcheckJsxChildrenProperty14.types5 interface Prop {
45 function Comp(p: Prop) {
46 >Comp : (p: Prop) => JSX.Element
47 >p : Prop
53 >p : Prop
62 >Comp : (p: Prop) => JSX.Element
71 >Comp : (p: Prop) => JSX.Element
76 >Comp : (p: Prop) => JSX.Element
85 >Comp : (p: Prop) => JSX.Element
90 >Comp : (p: Prop) => JSX.Element
[all …]
/third_party/typescript/tests/cases/conformance/jsx/
DtsxTypeArgumentResolution.tsx9 interface Prop {
18 let x = <MyComp<Prop> a={10} b="hi" />; // OK
20 x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
22 x = <MyComp<Prop> a={10} b={20} />; // error
24 x = <MyComp<Prop> a={10} b={20}></MyComp>; // error
26 x = <MyComp<Prop, Prop> a={10} b="hi" />; // error
28 x = <MyComp<Prop, Prop> a={10} b="hi"></MyComp>; // error
45 x = <MyComp2<Prop> a={10} b="hi" />; // error
47 x = <MyComp2<Prop> a={10} b="hi"></MyComp2>; // error
53 x = <MyComp2<{a: string}, {b: string}, Prop> a="hi" b="hi" />; // error
[all …]

12345