File: tsxSpreadInvalidType.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (34 lines) | stat: -rw-r--r-- 958 bytes parent folder | download | duplicates (3)
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
=== tests/cases/conformance/jsx/a.tsx ===
namespace JSX {
>JSX : Symbol(JSX, Decl(a.tsx, 0, 0))

    export interface IntrinsicElements { [key: string]: any }
>IntrinsicElements : Symbol(IntrinsicElements, Decl(a.tsx, 0, 15))
>key : Symbol(key, Decl(a.tsx, 1, 42))
}

const a = {} as never;
>a : Symbol(a, Decl(a.tsx, 4, 5))

const b = null;
>b : Symbol(b, Decl(a.tsx, 5, 5))

const c = undefined;
>c : Symbol(c, Decl(a.tsx, 6, 5))
>undefined : Symbol(undefined)

const d = <div { ...a } />
>d : Symbol(d, Decl(a.tsx, 8, 5))
>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15))
>a : Symbol(a, Decl(a.tsx, 4, 5))

const e = <div { ...b } />
>e : Symbol(e, Decl(a.tsx, 9, 5))
>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15))
>b : Symbol(b, Decl(a.tsx, 5, 5))

const f = <div { ...c } />
>f : Symbol(f, Decl(a.tsx, 10, 5))
>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15))
>c : Symbol(c, Decl(a.tsx, 6, 5))