Home
last modified time | relevance | path

Searched refs:Props (Results 1 – 25 of 182) sorted by relevance

12345678

/third_party/typescript/tests/baselines/reference/
DjsxSpreadOverwritesAttributeStrict.types5 interface Props {
20 const props: Props = { a: 1, b: 1 };
21 >props : Props
28 const Foo = (props: Props) => <div>{ props.a }</div>;
29 >Foo : (props: Props) => JSX.Element
30 >(props: Props) => <div>{ props.a }</div> : (props: Props) => JSX.Element
31 >props : Props
35 >props : Props
43 >Foo : (props: Props) => JSX.Element
44 >props : Props
[all …]
DvueLikeDataAndPropsInference.types7 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
8 >DataDef : DataDef<Data, Props>
9 >this : Readonly<Props> & Instance
38 type ThisTypedOptions<Data, Props> =
39 >ThisTypedOptions : ThisTypedOptions<Data, Props>
41 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
42 ThisType<Data & Readonly<Props> & Instance>
44 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;
45 >test : { <Data, Props>(fn: ThisTypedOptions<Data, Props>): void; (fn: Options<(this: Instance) => …
46 >fn : ThisTypedOptions<Data, Props>
[all …]
DvueLikeDataAndPropsInference.symbols9 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
12 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 4, 18))
15 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 4, 18))
64 type ThisTypedOptions<Data, Props> =
67 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 21, 27))
69 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
73 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 21, 27))
75 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 21, 27))
77 ThisType<Data & Readonly<Props> & Instance>
81 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference.ts, 21, 27))
[all …]
DvueLikeDataAndPropsInference2.types7 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
8 >DataDef : DataDef<Data, Props>
9 >this : Readonly<Props> & Instance
38 type ThisTypedOptions<Data, Props> =
39 >ThisTypedOptions : ThisTypedOptions<Data, Props>
42 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
43 ThisType<Data & Readonly<Props> & Instance>
45 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;
46 >test : { <Data, Props>(fn: ThisTypedOptions<Data, Props>): void; (fn: Options<object | ((this: Ins…
47 >fn : ThisTypedOptions<Data, Props>
[all …]
DvueLikeDataAndPropsInference2.symbols9 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
12 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 4, 18))
15 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 4, 18))
66 type ThisTypedOptions<Data, Props> =
69 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 21, 27))
72 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
76 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 21, 27))
78 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 21, 27))
80 ThisType<Data & Readonly<Props> & Instance>
84 >Props : Symbol(Props, Decl(vueLikeDataAndPropsInference2.ts, 21, 27))
[all …]
DreactDefaultPropsInferenceSuccess.errors.txt2 Overload 1 of 2, '(props: Readonly<Props>): FieldFeedback<Props>', gave the following error.
6 Overload 2 of 2, '(props: Props, context?: any): FieldFeedback<Props>', gave the following error.
9 Overload 1 of 2, '(props: Readonly<Props>): FieldFeedbackBeta<Props>', gave the following error.
13 …Overload 2 of 2, '(props: Props, context?: any): FieldFeedbackBeta<Props>', gave the following err…
33 interface Props extends BaseProps {
36 class FieldFeedback<P extends Props = BaseProps> extends React.Component<P> {
53 !!! error TS2769: Overload 1 of 2, '(props: Readonly<Props>): FieldFeedback<Props>', gave the fol…
57 !!! error TS2769: Overload 2 of 2, '(props: Props, context?: any): FieldFeedback<Props>', gave th…
59Props>> & Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children" | "error"> & Part…
60Props>> & Pick<Readonly<{ children?: ReactNode; }> & Readonly<Props>, "children" | "error"> & Part…
[all …]
DgenericFunctionInference2.types56 type Props = { out: number }
57 >Props : { out: number; }
65 const enhancer4 = withH((props: Props) => ({
67 >withH((props: Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any…
69Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any) => {},}) : (…
70 >props : Props
71 …(props) => (e: any) => {},}) : { onChange: (props: Props) => (e: any) => void; onSubmit: (props: P…
72 … (props) => (e: any) => {},} : { onChange: (props: Props) => (e: any) => void; onSubmit: (props: P…
75 >onChange : (props: Props) => (e: any) => void
76 >(props) => (e: any) => {} : (props: Props) => (e: any) => void
[all …]
DjsxHasLiteralType.symbols5 interface Props {
6 >Props : Symbol(Props, Decl(jsxHasLiteralType.tsx, 0, 31))
9 >x : Symbol(Props.x, Decl(jsxHasLiteralType.tsx, 2, 17))
11 class MyComponent<P extends Props = Props> extends React.Component<P, {}> {}
14 >Props : Symbol(Props, Decl(jsxHasLiteralType.tsx, 0, 31))
15 >Props : Symbol(Props, Decl(jsxHasLiteralType.tsx, 0, 31))
DjsxSpreadOverwritesAttributeStrict.symbols5 interface Props {
6 >Props : Symbol(Props, Decl(file.tsx, 0, 32))
9 >a : Symbol(Props.a, Decl(file.tsx, 2, 17))
12 >b : Symbol(Props.b, Decl(file.tsx, 3, 14))
15 >c : Symbol(Props.c, Decl(file.tsx, 4, 14))
18 >d : Symbol(Props.d, Decl(file.tsx, 5, 15))
22 const props: Props = { a: 1, b: 1 };
24 >Props : Symbol(Props, Decl(file.tsx, 0, 32))
28 const Foo = (props: Props) => <div>{ props.a }</div>;
31 >Props : Symbol(Props, Decl(file.tsx, 0, 32))
[all …]
DconditionalTypeContextualTypeSimplificationsSuceeds.symbols3 interface Props {
4 >Props : Symbol(Props, Decl(conditionalTypeContextualTypeSimplificationsSuceeds.ts, 0, 0))
7 >when : Symbol(Props.when, Decl(conditionalTypeContextualTypeSimplificationsSuceeds.ts, 1, 17))
11 function bad<P extends Props>(
14 >Props : Symbol(Props, Decl(conditionalTypeContextualTypeSimplificationsSuceeds.ts, 0, 0))
28 function good1<P extends Props>(
31 >Props : Symbol(Props, Decl(conditionalTypeContextualTypeSimplificationsSuceeds.ts, 0, 0))
42 function good2<P extends Props>(
45 >Props : Symbol(Props, Decl(conditionalTypeContextualTypeSimplificationsSuceeds.ts, 0, 0))
DvueLikeDataAndPropsInference.js6 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data function
23 type ThisTypedOptions<Data, Props> =
24 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
25 ThisType<Data & Readonly<Props> & Instance>
27 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;
DignoredJsxAttributes.symbols9 interface Props {
10 >Props : Symbol(Props, Decl(ignoredJsxAttributes.tsx, 4, 31))
13 >foo : Symbol(Props.foo, Decl(ignoredJsxAttributes.tsx, 6, 17))
19 declare function Yadda(props: Props): JSX.Element;
22 >Props : Symbol(Props, Decl(ignoredJsxAttributes.tsx, 4, 31))
26 let props: Props = {
28 >Props : Symbol(Props, Decl(ignoredJsxAttributes.tsx, 4, 31))
DtsxInferenceShouldNotYieldAnyOnUnions.types6 type Props<T> = PropsBase<string> | PropsWithConvert<T>;
7 >Props : Props<T>
20 function ShouldInferFromData<T>(props: Props<T>): JSX.Element {
21 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
22 >props : Props<T>
33 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
40 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
53 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
68 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
75 >ShouldInferFromData : <T>(props: Props<T>) => JSX.Element
[all …]
DvueLikeDataAndPropsInference2.js6 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data function
23 type ThisTypedOptions<Data, Props> =
25 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
26 ThisType<Data & Readonly<Props> & Instance>
28 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;
DjsxEmptyExpressionNotCountedAsChild(jsx=react-jsxdev).symbols6 interface Props {
7 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
10 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
15 function Wrapper(props: Props) {
18 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
22 >props.children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
24 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
DjsxEmptyExpressionNotCountedAsChild(jsx=react-jsx).symbols6 interface Props {
7 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
10 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
15 function Wrapper(props: Props) {
18 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
22 >props.children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
24 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
DjsxEmptyExpressionNotCountedAsChild(jsx=react).symbols6 interface Props {
7 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
10 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
15 function Wrapper(props: Props) {
18 >Props : Symbol(Props, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 1, 30))
22 >props.children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
24 >children : Symbol(Props.children, Decl(jsxEmptyExpressionNotCountedAsChild.tsx, 3, 17))
DignoredJsxAttributes.types9 interface Props {
17 declare function Yadda(props: Props): JSX.Element;
18 >Yadda : (props: Props) => JSX.Element
19 >props : Props
22 let props: Props = {
23 >props : Props
39 >Yadda : (props: Props) => JSX.Element
47 >Yadda : (props: Props) => JSX.Element
DcontextuallyTypedJsxAttribute.types14 type Props<C extends keyof Elements> = { as?: C } & Elements[C];
15 >Props : Props<C>
18 declare function Test<C extends keyof Elements>(props: Props<C>): null;
19 >Test : <C extends keyof Elements>(props: Props<C>) => null
20 >props : Props<C>
25 >Test : <C extends keyof Elements>(props: Props<C>) => null
39 >Test : <C extends keyof Elements>(props: Props<C>) => null
55 >Test : <C extends keyof Elements>(props: Props<C>) => null
DjsxNamespaceImplicitImportJSXNamespace.js4 type Defaultize<Props, Defaults> =
6 Props extends any // Make any properties included in Default optional
7 ? Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>> &
9 Pick<Props, Exclude<keyof Props, keyof Defaults>>
14 type LibraryManagedAttributes<Component, Props> = Component extends {
17 ? Defaultize<Props, Defaults>
18 : Props;
DjsxNamespaceGlobalReexportMissingAliasTarget.symbols2 type Defaultize<Props, Defaults> =
4 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
8 Props extends any // Make any properties included in Default optional
9 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
11 ? Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>> &
14 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
16 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
19 // Include the remaining properties from Props
20 Pick<Props, Exclude<keyof Props, keyof Defaults>>
22 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
[all …]
DjsxNamespaceImplicitImportJSXNamespace.symbols2 type Defaultize<Props, Defaults> =
4 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
8 Props extends any // Make any properties included in Default optional
9 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
11 ? Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>> &
14 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
16 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
19 // Include the remaining properties from Props
20 Pick<Props, Exclude<keyof Props, keyof Defaults>>
22 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
[all …]
DjsxNamespaceGlobalReexport.symbols2 type Defaultize<Props, Defaults> =
4 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
8 Props extends any // Make any properties included in Default optional
9 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
11 ? Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>> &
14 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
16 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
19 // Include the remaining properties from Props
20 Pick<Props, Exclude<keyof Props, keyof Defaults>>
22 >Props : Symbol(Props, Decl(index.d.ts, 0, 16))
[all …]
/third_party/typescript/tests/cases/compiler/
DvueLikeDataAndPropsInference.ts5 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
22 type ThisTypedOptions<Data, Props> =
23 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
24 ThisType<Data & Readonly<Props> & Instance>
26 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;
DvueLikeDataAndPropsInference2.ts5 type DataDef<Data, Props> = (this: Readonly<Props> & Instance) => Data
22 type ThisTypedOptions<Data, Props> =
24 Options<DataDef<Data, Props>, PropsDefinition<Props>> &
25 ThisType<Data & Readonly<Props> & Instance>
27 declare function test<Data, Props>(fn: ThisTypedOptions<Data, Props>): void;

12345678