File: jsxEmitWithAttributes.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (134 lines) | stat: -rw-r--r-- 2,856 bytes parent folder | download | duplicates (4)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
=== tests/cases/compiler/Element.ts ===

declare namespace JSX {
>JSX : any

    interface Element {
>Element : Element

        name: string;
>name : string

        isIntrinsic: boolean;
>isIntrinsic : boolean

        isCustomElement: boolean;
>isCustomElement : boolean

        toString(renderId?: number): string;
>toString : (renderId?: number) => string
>renderId : number

        bindDOM(renderId?: number): number;
>bindDOM : (renderId?: number) => number
>renderId : number

        resetComponent(): void;
>resetComponent : () => void

        instantiateComponents(renderId?: number): number;
>instantiateComponents : (renderId?: number) => number
>renderId : number

        props: any;
>props : any
    }
}
export namespace Element {
>Element : typeof Element

    export function isElement(el: any): el is JSX.Element {
>isElement : (el: any) => el is JSX.Element
>el : any
>el : any
>JSX : any
>Element : JSX.Element

        return el.markAsChildOfRootElement !== undefined;
>el.markAsChildOfRootElement !== undefined : boolean
>el.markAsChildOfRootElement : any
>el : any
>markAsChildOfRootElement : any
>undefined : undefined
    }

    export function createElement(args: any[]) {
>createElement : (args: any[]) => {}
>args : any[]

        return {
>{        } : {}
        }
    }
}

export let createElement = Element.createElement;
>createElement : (args: any[]) => {}
>Element.createElement : (args: any[]) => {}
>Element : typeof Element
>createElement : (args: any[]) => {}

function toCamelCase(text: string): string {
>toCamelCase : (text: string) => string
>text : string

    return text[0].toLowerCase() + text.substring(1);
>text[0].toLowerCase() + text.substring(1) : string
>text[0].toLowerCase() : string
>text[0].toLowerCase : () => string
>text[0] : string
>text : string
>0 : 0
>toLowerCase : () => string
>text.substring(1) : string
>text.substring : (start: number, end?: number) => string
>text : string
>substring : (start: number, end?: number) => string
>1 : 1
}

=== tests/cases/compiler/test.tsx ===
import { Element} from './Element';
>Element : typeof Element

let c: {
>c : { a?: { b: string; }; }

	a?: {
>a : { b: string; }

		b: string
>b : string
	}
};

class A {
>A : A

	view() {
>view : () => any[]

		return [
>[			<meta content="helloworld"></meta>,			<meta content={c.a!.b}></meta>		] : any[]

			<meta content="helloworld"></meta>,
><meta content="helloworld"></meta> : any
>meta : any
>content : any
>meta : any

			<meta content={c.a!.b}></meta>
><meta content={c.a!.b}></meta> : any
>meta : any
>content : any
>c.a!.b : string
>c.a! : { b: string; }
>c.a : { b: string; }
>c : { a?: { b: string; }; }
>a : { b: string; }
>b : string
>meta : any

		];
	}
}