forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjsDeclarationsNonIdentifierInferredNames.types
More file actions
39 lines (33 loc) · 1.55 KB
/
jsDeclarationsNonIdentifierInferredNames.types
File metadata and controls
39 lines (33 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts] ////
=== Performance Stats ===
Assignability cache: 2,500
Type Count: 10,000
Instantiation count: 50,000
Symbol count: 50,000
=== jsDeclarationsNonIdentifierInferredNames.jsx ===
/// <reference path="react16.d.ts" />
import * as React from "react";
>React : typeof React
> : ^^^^^^^^^^^^
const dynPropName = "data-dyn";
>dynPropName : "data-dyn"
> : ^^^^^^^^^^
>"data-dyn" : "data-dyn"
> : ^^^^^^^^^^
export const ExampleFunctionalComponent = ({ "data-testid": dataTestId, [dynPropName]: dynProp }) => (
>ExampleFunctionalComponent : ({ "data-testid": dataTestId, [dynPropName]: dynProp }: { "data-testid": any; "data-dyn": any; }) => JSX.Element
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>({ "data-testid": dataTestId, [dynPropName]: dynProp }) => ( <>Hello</>) : ({ "data-testid": dataTestId, [dynPropName]: dynProp }: { "data-testid": any; "data-dyn": any; }) => JSX.Element
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>dataTestId : any
> : ^^^
>dynPropName : "data-dyn"
> : ^^^^^^^^^^
>dynProp : any
> : ^^^
>( <>Hello</>) : JSX.Element
> : ^^^^^^^^^^^
<>Hello</>
><>Hello</> : JSX.Element
> : ^^^^^^^^^^^
);