|
| 1 | +=== tests/cases/compiler/jsxPartialSpread.tsx === |
| 2 | +/// <reference path="react16.d.ts" /> |
| 3 | +const Select = (p: {value?: unknown}) => <p></p>; |
| 4 | +>Select : Symbol(Select, Decl(jsxPartialSpread.tsx, 1, 5)) |
| 5 | +>p : Symbol(p, Decl(jsxPartialSpread.tsx, 1, 16)) |
| 6 | +>value : Symbol(value, Decl(jsxPartialSpread.tsx, 1, 20)) |
| 7 | +>p : Symbol(JSX.IntrinsicElements.p, Decl(react16.d.ts, 2467, 102)) |
| 8 | +>p : Symbol(JSX.IntrinsicElements.p, Decl(react16.d.ts, 2467, 102)) |
| 9 | + |
| 10 | +import React from 'react'; |
| 11 | +>React : Symbol(React, Decl(jsxPartialSpread.tsx, 2, 6)) |
| 12 | + |
| 13 | +export function Repro({ SelectProps = {} }: { SelectProps?: Partial<Parameters<typeof Select>[0]> }) { |
| 14 | +>Repro : Symbol(Repro, Decl(jsxPartialSpread.tsx, 2, 26)) |
| 15 | +>SelectProps : Symbol(SelectProps, Decl(jsxPartialSpread.tsx, 4, 23)) |
| 16 | +>SelectProps : Symbol(SelectProps, Decl(jsxPartialSpread.tsx, 4, 45)) |
| 17 | +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) |
| 18 | +>Parameters : Symbol(Parameters, Decl(lib.es5.d.ts, --, --)) |
| 19 | +>Select : Symbol(Select, Decl(jsxPartialSpread.tsx, 1, 5)) |
| 20 | + |
| 21 | + return ( |
| 22 | + <Select value={'test'} {...SelectProps} /> |
| 23 | +>Select : Symbol(Select, Decl(jsxPartialSpread.tsx, 1, 5)) |
| 24 | +>value : Symbol(value, Decl(jsxPartialSpread.tsx, 6, 15)) |
| 25 | +>SelectProps : Symbol(SelectProps, Decl(jsxPartialSpread.tsx, 4, 23)) |
| 26 | + |
| 27 | + ); |
| 28 | +} |
0 commit comments