File: deleteChain.types

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 (173 lines) | stat: -rw-r--r-- 6,407 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
=== tests/cases/conformance/expressions/optionalChaining/delete/deleteChain.ts ===
declare const o1: undefined | { b: string };
>o1 : { b: string; } | undefined
>b : string

delete o1?.b;
>delete o1?.b : boolean
>o1?.b : string | undefined
>o1 : { b: string; } | undefined
>b : string | undefined

delete (o1?.b);
>delete (o1?.b) : boolean
>(o1?.b) : string | undefined
>o1?.b : string | undefined
>o1 : { b: string; } | undefined
>b : string | undefined

declare const o2: undefined | { b: { c: string } };
>o2 : { b: {    c: string;}; } | undefined
>b : { c: string; }
>c : string

delete o2?.b.c;
>delete o2?.b.c : boolean
>o2?.b.c : string | undefined
>o2?.b : { c: string; } | undefined
>o2 : { b: { c: string; }; } | undefined
>b : { c: string; } | undefined
>c : string | undefined

delete (o2?.b.c);
>delete (o2?.b.c) : boolean
>(o2?.b.c) : string | undefined
>o2?.b.c : string | undefined
>o2?.b : { c: string; } | undefined
>o2 : { b: { c: string; }; } | undefined
>b : { c: string; } | undefined
>c : string | undefined

declare const o3: { b: undefined | { c: string } };
>o3 : { b: undefined | {    c: string;}; }
>b : { c: string; } | undefined
>c : string

delete o3.b?.c;
>delete o3.b?.c : boolean
>o3.b?.c : string | undefined
>o3.b : { c: string; } | undefined
>o3 : { b: { c: string; } | undefined; }
>b : { c: string; } | undefined
>c : string | undefined

delete (o3.b?.c);
>delete (o3.b?.c) : boolean
>(o3.b?.c) : string | undefined
>o3.b?.c : string | undefined
>o3.b : { c: string; } | undefined
>o3 : { b: { c: string; } | undefined; }
>b : { c: string; } | undefined
>c : string | undefined

declare const o4: { b?: { c: { d?: { e: string } } } };
>o4 : { b?: { c: {    d?: {        e: string;    };}; } | undefined; }
>b : { c: {    d?: {        e: string;    };}; } | undefined
>c : { d?: { e: string; } | undefined; }
>d : { e: string; } | undefined
>e : string

delete o4.b?.c.d?.e;
>delete o4.b?.c.d?.e : boolean
>o4.b?.c.d?.e : string | undefined
>o4.b?.c.d : { e: string; } | undefined
>o4.b?.c : { d?: { e: string; } | undefined; } | undefined
>o4.b : { c: { d?: { e: string; } | undefined; }; } | undefined
>o4 : { b?: { c: { d?: { e: string; } | undefined; }; } | undefined; }
>b : { c: { d?: { e: string; } | undefined; }; } | undefined
>c : { d?: { e: string; } | undefined; } | undefined
>d : { e: string; } | undefined
>e : string | undefined

delete (o4.b?.c.d)?.e;
>delete (o4.b?.c.d)?.e : boolean
>(o4.b?.c.d)?.e : string | undefined
>(o4.b?.c.d) : { e: string; } | undefined
>o4.b?.c.d : { e: string; } | undefined
>o4.b?.c : { d?: { e: string; } | undefined; } | undefined
>o4.b : { c: { d?: { e: string; } | undefined; }; } | undefined
>o4 : { b?: { c: { d?: { e: string; } | undefined; }; } | undefined; }
>b : { c: { d?: { e: string; } | undefined; }; } | undefined
>c : { d?: { e: string; } | undefined; } | undefined
>d : { e: string; } | undefined
>e : string | undefined

delete (o4.b?.c.d?.e);
>delete (o4.b?.c.d?.e) : boolean
>(o4.b?.c.d?.e) : string | undefined
>o4.b?.c.d?.e : string | undefined
>o4.b?.c.d : { e: string; } | undefined
>o4.b?.c : { d?: { e: string; } | undefined; } | undefined
>o4.b : { c: { d?: { e: string; } | undefined; }; } | undefined
>o4 : { b?: { c: { d?: { e: string; } | undefined; }; } | undefined; }
>b : { c: { d?: { e: string; } | undefined; }; } | undefined
>c : { d?: { e: string; } | undefined; } | undefined
>d : { e: string; } | undefined
>e : string | undefined

declare const o5: { b?(): { c: { d?: { e: string } } } };
>o5 : { b?(): {    c: {        d?: {            e: string;        };    };}; }
>b : (() => {    c: {        d?: {            e: string;        };    };}) | undefined
>c : { d?: { e: string; } | undefined; }
>d : { e: string; } | undefined
>e : string

delete o5.b?.().c.d?.e;
>delete o5.b?.().c.d?.e : boolean
>o5.b?.().c.d?.e : string | undefined
>o5.b?.().c.d : { e: string; } | undefined
>o5.b?.().c : { d?: { e: string; } | undefined; } | undefined
>o5.b?.() : { c: { d?: { e: string; } | undefined; }; } | undefined
>o5.b : (() => { c: { d?: { e: string; } | undefined; }; }) | undefined
>o5 : { b?(): { c: { d?: { e: string; } | undefined; }; }; }
>b : (() => { c: { d?: { e: string; } | undefined; }; }) | undefined
>c : { d?: { e: string; } | undefined; } | undefined
>d : { e: string; } | undefined
>e : string | undefined

delete (o5.b?.().c.d?.e);
>delete (o5.b?.().c.d?.e) : boolean
>(o5.b?.().c.d?.e) : string | undefined
>o5.b?.().c.d?.e : string | undefined
>o5.b?.().c.d : { e: string; } | undefined
>o5.b?.().c : { d?: { e: string; } | undefined; } | undefined
>o5.b?.() : { c: { d?: { e: string; } | undefined; }; } | undefined
>o5.b : (() => { c: { d?: { e: string; } | undefined; }; }) | undefined
>o5 : { b?(): { c: { d?: { e: string; } | undefined; }; }; }
>b : (() => { c: { d?: { e: string; } | undefined; }; }) | undefined
>c : { d?: { e: string; } | undefined; } | undefined
>d : { e: string; } | undefined
>e : string | undefined

declare const o6: { b?: { c: { d?: { e: string } } } };
>o6 : { b?: { c: {    d?: {        e: string;    };}; } | undefined; }
>b : { c: {    d?: {        e: string;    };}; } | undefined
>c : { d?: { e: string; } | undefined; }
>d : { e: string; } | undefined
>e : string

delete o6.b?.['c'].d?.['e'];
>delete o6.b?.['c'].d?.['e'] : boolean
>o6.b?.['c'].d?.['e'] : string | undefined
>o6.b?.['c'].d : { e: string; } | undefined
>o6.b?.['c'] : { d?: { e: string; } | undefined; } | undefined
>o6.b : { c: { d?: { e: string; } | undefined; }; } | undefined
>o6 : { b?: { c: { d?: { e: string; } | undefined; }; } | undefined; }
>b : { c: { d?: { e: string; } | undefined; }; } | undefined
>'c' : "c"
>d : { e: string; } | undefined
>'e' : "e"

delete (o6.b?.['c'].d?.['e']);
>delete (o6.b?.['c'].d?.['e']) : boolean
>(o6.b?.['c'].d?.['e']) : string | undefined
>o6.b?.['c'].d?.['e'] : string | undefined
>o6.b?.['c'].d : { e: string; } | undefined
>o6.b?.['c'] : { d?: { e: string; } | undefined; } | undefined
>o6.b : { c: { d?: { e: string; } | undefined; }; } | undefined
>o6 : { b?: { c: { d?: { e: string; } | undefined; }; } | undefined; }
>b : { c: { d?: { e: string; } | undefined; }; } | undefined
>'c' : "c"
>d : { e: string; } | undefined
>'e' : "e"