jsii-reflect 1.115.0 → 1.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/jsii-tree.js +4 -1
- package/lib/type-system.d.ts +4 -0
- package/lib/type-system.js +1 -0
- package/package.json +8 -8
- package/test/__snapshots__/jsii-tree.test.js.snap +125 -0
- package/test/__snapshots__/tree.test.js.snap +80 -0
- package/test/__snapshots__/type-system.test.js.snap +6 -0
- package/test/features.js +4 -1
package/bin/jsii-tree.js
CHANGED
|
@@ -4,7 +4,10 @@ require("@jsii/check-node/run");
|
|
|
4
4
|
const chalk = require("chalk");
|
|
5
5
|
const yargs = require("yargs");
|
|
6
6
|
const lib_1 = require("../lib");
|
|
7
|
-
const JSII_TREE_SUPPORTED_FEATURES = [
|
|
7
|
+
const JSII_TREE_SUPPORTED_FEATURES = [
|
|
8
|
+
'intersection-types',
|
|
9
|
+
'class-covariant-overrides',
|
|
10
|
+
];
|
|
8
11
|
async function main() {
|
|
9
12
|
const options = await yargs
|
|
10
13
|
.usage('$0 [JSII-FILE | MODULE-DIR...]', 'Prints an ASCII tree representation of a jsii type system.', (args) => args
|
package/lib/type-system.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ import { Type } from './type';
|
|
|
12
12
|
* The features claimed by the user of jsii-reflect must be a subset of these.
|
|
13
13
|
*/
|
|
14
14
|
export declare const JSII_REFLECT_SUPPORTED_ASSEMBLY_FEATURES: JsiiFeature[];
|
|
15
|
+
/**
|
|
16
|
+
* All supported features as a type
|
|
17
|
+
*/
|
|
18
|
+
export type JsiiReflectSupportedAssemblyFeatures = (typeof JSII_REFLECT_SUPPORTED_ASSEMBLY_FEATURES)[number];
|
|
15
19
|
export declare class TypeSystem {
|
|
16
20
|
/**
|
|
17
21
|
* The "root" assemblies (ones that loaded explicitly via a "load" call).
|
package/lib/type-system.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-reflect",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.117.0",
|
|
4
4
|
"description": "strongly-typed reflection library and tools for jsii",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc --build && chmod +x bin/jsii-tree && yarn lint",
|
|
29
29
|
"watch": "tsc --build -w",
|
|
30
|
-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .js,.ts --ignore-path=.gitignore",
|
|
30
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false NODE_OPTIONS='--disable-warning=ESLintRCWarning' eslint . --ext .js,.ts --ignore-path=.gitignore",
|
|
31
31
|
"lint:fix": "yarn lint --fix",
|
|
32
32
|
"test": "jest",
|
|
33
33
|
"test:update": "jest -u",
|
|
34
34
|
"package": "package-js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsii/check-node": "1.
|
|
38
|
-
"@jsii/spec": "1.
|
|
37
|
+
"@jsii/check-node": "1.117.0",
|
|
38
|
+
"@jsii/spec": "1.117.0",
|
|
39
39
|
"chalk": "^4",
|
|
40
40
|
"fs-extra": "^10.1.0",
|
|
41
|
-
"oo-ascii-tree": "^1.
|
|
41
|
+
"oo-ascii-tree": "^1.117.0",
|
|
42
42
|
"yargs": "^17.7.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@scope/jsii-calc-lib": "^1.
|
|
45
|
+
"@scope/jsii-calc-lib": "^1.117.0",
|
|
46
46
|
"@types/fs-extra": "^9.0.13",
|
|
47
47
|
"@types/yargs": "^17.0.33",
|
|
48
|
-
"jsii": "^5.9.
|
|
49
|
-
"jsii-build-tools": "^1.
|
|
48
|
+
"jsii": "^5.9.10",
|
|
49
|
+
"jsii-build-tools": "^1.117.0",
|
|
50
50
|
"jsii-calc": "^3.20.120"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -174,6 +174,58 @@ exports[`jsii-tree --all 1`] = `
|
|
|
174
174
|
│ │ │ └─┬ enum CompositionStringStyle (stable)
|
|
175
175
|
│ │ │ ├── NORMAL (stable)
|
|
176
176
|
│ │ │ └── DECORATED (stable)
|
|
177
|
+
│ │ ├─┬ covariantOverrides
|
|
178
|
+
│ │ │ ├─┬ submodules
|
|
179
|
+
│ │ │ │ └─┬ classOverrides
|
|
180
|
+
│ │ │ │ └─┬ types
|
|
181
|
+
│ │ │ │ ├─┬ class Base (stable)
|
|
182
|
+
│ │ │ │ │ ├── interfaces: IBase
|
|
183
|
+
│ │ │ │ │ └─┬ members
|
|
184
|
+
│ │ │ │ │ ├── <initializer>() initializer (stable)
|
|
185
|
+
│ │ │ │ │ ├─┬ createSomething() method (stable)
|
|
186
|
+
│ │ │ │ │ │ └── returns: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
187
|
+
│ │ │ │ │ ├─┬ list property (stable)
|
|
188
|
+
│ │ │ │ │ │ ├── immutable
|
|
189
|
+
│ │ │ │ │ │ └── type: Array<jsii-calc.covariantOverrides.classOverrides.Superclass>
|
|
190
|
+
│ │ │ │ │ └─┬ something property (stable)
|
|
191
|
+
│ │ │ │ │ ├── immutable
|
|
192
|
+
│ │ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
193
|
+
│ │ │ │ ├─┬ class Derived (stable)
|
|
194
|
+
│ │ │ │ │ ├── base: Middle
|
|
195
|
+
│ │ │ │ │ └─┬ members
|
|
196
|
+
│ │ │ │ │ ├── <initializer>() initializer (stable)
|
|
197
|
+
│ │ │ │ │ ├─┬ createSomething() method (stable)
|
|
198
|
+
│ │ │ │ │ │ └── returns: jsii-calc.covariantOverrides.classOverrides.SubSubclass
|
|
199
|
+
│ │ │ │ │ ├─┬ list property (stable)
|
|
200
|
+
│ │ │ │ │ │ ├── immutable
|
|
201
|
+
│ │ │ │ │ │ └── type: Array<jsii-calc.covariantOverrides.classOverrides.Superclass>
|
|
202
|
+
│ │ │ │ │ └─┬ something property (stable)
|
|
203
|
+
│ │ │ │ │ ├── immutable
|
|
204
|
+
│ │ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.SubSubclass
|
|
205
|
+
│ │ │ │ ├─┬ class Middle (stable)
|
|
206
|
+
│ │ │ │ │ ├── base: Base
|
|
207
|
+
│ │ │ │ │ └─┬ members
|
|
208
|
+
│ │ │ │ │ ├── <initializer>() initializer (stable)
|
|
209
|
+
│ │ │ │ │ └─┬ addUnrelatedMember property (stable)
|
|
210
|
+
│ │ │ │ │ └── type: number
|
|
211
|
+
│ │ │ │ ├─┬ class SubSubclass (stable)
|
|
212
|
+
│ │ │ │ │ ├── base: Subclass
|
|
213
|
+
│ │ │ │ │ └─┬ members
|
|
214
|
+
│ │ │ │ │ └── <initializer>() initializer (stable)
|
|
215
|
+
│ │ │ │ ├─┬ class Subclass (stable)
|
|
216
|
+
│ │ │ │ │ ├── base: Superclass
|
|
217
|
+
│ │ │ │ │ └─┬ members
|
|
218
|
+
│ │ │ │ │ └── <initializer>() initializer (stable)
|
|
219
|
+
│ │ │ │ ├─┬ class Superclass (stable)
|
|
220
|
+
│ │ │ │ │ └─┬ members
|
|
221
|
+
│ │ │ │ │ └── <initializer>() initializer (stable)
|
|
222
|
+
│ │ │ │ └─┬ interface IBase (stable)
|
|
223
|
+
│ │ │ │ └─┬ members
|
|
224
|
+
│ │ │ │ └─┬ something property (stable)
|
|
225
|
+
│ │ │ │ ├── abstract
|
|
226
|
+
│ │ │ │ ├── immutable
|
|
227
|
+
│ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
228
|
+
│ │ │ └── types
|
|
177
229
|
│ │ ├─┬ homonymousForwardReferences
|
|
178
230
|
│ │ │ ├─┬ submodules
|
|
179
231
|
│ │ │ │ ├─┬ bar
|
|
@@ -225,6 +277,10 @@ exports[`jsii-tree --all 1`] = `
|
|
|
225
277
|
│ │ │ └─┬ types
|
|
226
278
|
│ │ │ ├─┬ class ConsumesIntersection (stable)
|
|
227
279
|
│ │ │ │ └─┬ members
|
|
280
|
+
│ │ │ │ ├─┬ <initializer>(props) initializer (stable)
|
|
281
|
+
│ │ │ │ │ └─┬ parameters
|
|
282
|
+
│ │ │ │ │ └─┬ props
|
|
283
|
+
│ │ │ │ │ └── type: jsii-calc.intersection.IntersectionProps
|
|
228
284
|
│ │ │ │ ├─┬ static acceptsIntersection(param) method (stable)
|
|
229
285
|
│ │ │ │ │ ├── static
|
|
230
286
|
│ │ │ │ │ ├─┬ parameters
|
|
@@ -3810,6 +3866,23 @@ exports[`jsii-tree --inheritance 1`] = `
|
|
|
3810
3866
|
│ │ │ ├─┬ class CompositeOperation
|
|
3811
3867
|
│ │ │ │ └── base: Operation
|
|
3812
3868
|
│ │ │ └── enum CompositionStringStyle
|
|
3869
|
+
│ │ ├─┬ covariantOverrides
|
|
3870
|
+
│ │ │ ├─┬ submodules
|
|
3871
|
+
│ │ │ │ └─┬ classOverrides
|
|
3872
|
+
│ │ │ │ └─┬ types
|
|
3873
|
+
│ │ │ │ ├─┬ class Base
|
|
3874
|
+
│ │ │ │ │ └── interfaces: IBase
|
|
3875
|
+
│ │ │ │ ├─┬ class Derived
|
|
3876
|
+
│ │ │ │ │ └── base: Middle
|
|
3877
|
+
│ │ │ │ ├─┬ class Middle
|
|
3878
|
+
│ │ │ │ │ └── base: Base
|
|
3879
|
+
│ │ │ │ ├─┬ class SubSubclass
|
|
3880
|
+
│ │ │ │ │ └── base: Subclass
|
|
3881
|
+
│ │ │ │ ├─┬ class Subclass
|
|
3882
|
+
│ │ │ │ │ └── base: Superclass
|
|
3883
|
+
│ │ │ │ ├── class Superclass
|
|
3884
|
+
│ │ │ │ └── interface IBase
|
|
3885
|
+
│ │ │ └── types
|
|
3813
3886
|
│ │ ├─┬ homonymousForwardReferences
|
|
3814
3887
|
│ │ │ ├─┬ submodules
|
|
3815
3888
|
│ │ │ │ ├─┬ bar
|
|
@@ -4415,6 +4488,39 @@ exports[`jsii-tree --members 1`] = `
|
|
|
4415
4488
|
│ │ │ └─┬ enum CompositionStringStyle
|
|
4416
4489
|
│ │ │ ├── NORMAL
|
|
4417
4490
|
│ │ │ └── DECORATED
|
|
4491
|
+
│ │ ├─┬ covariantOverrides
|
|
4492
|
+
│ │ │ ├─┬ submodules
|
|
4493
|
+
│ │ │ │ └─┬ classOverrides
|
|
4494
|
+
│ │ │ │ └─┬ types
|
|
4495
|
+
│ │ │ │ ├─┬ class Base
|
|
4496
|
+
│ │ │ │ │ └─┬ members
|
|
4497
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
4498
|
+
│ │ │ │ │ ├── createSomething() method
|
|
4499
|
+
│ │ │ │ │ ├── list property
|
|
4500
|
+
│ │ │ │ │ └── something property
|
|
4501
|
+
│ │ │ │ ├─┬ class Derived
|
|
4502
|
+
│ │ │ │ │ └─┬ members
|
|
4503
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
4504
|
+
│ │ │ │ │ ├── createSomething() method
|
|
4505
|
+
│ │ │ │ │ ├── list property
|
|
4506
|
+
│ │ │ │ │ └── something property
|
|
4507
|
+
│ │ │ │ ├─┬ class Middle
|
|
4508
|
+
│ │ │ │ │ └─┬ members
|
|
4509
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
4510
|
+
│ │ │ │ │ └── addUnrelatedMember property
|
|
4511
|
+
│ │ │ │ ├─┬ class SubSubclass
|
|
4512
|
+
│ │ │ │ │ └─┬ members
|
|
4513
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
4514
|
+
│ │ │ │ ├─┬ class Subclass
|
|
4515
|
+
│ │ │ │ │ └─┬ members
|
|
4516
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
4517
|
+
│ │ │ │ ├─┬ class Superclass
|
|
4518
|
+
│ │ │ │ │ └─┬ members
|
|
4519
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
4520
|
+
│ │ │ │ └─┬ interface IBase
|
|
4521
|
+
│ │ │ │ └─┬ members
|
|
4522
|
+
│ │ │ │ └── something property
|
|
4523
|
+
│ │ │ └── types
|
|
4418
4524
|
│ │ ├─┬ homonymousForwardReferences
|
|
4419
4525
|
│ │ │ ├─┬ submodules
|
|
4420
4526
|
│ │ │ │ ├─┬ bar
|
|
@@ -4444,6 +4550,7 @@ exports[`jsii-tree --members 1`] = `
|
|
|
4444
4550
|
│ │ │ └─┬ types
|
|
4445
4551
|
│ │ │ ├─┬ class ConsumesIntersection
|
|
4446
4552
|
│ │ │ │ └─┬ members
|
|
4553
|
+
│ │ │ │ ├── <initializer>(props) initializer
|
|
4447
4554
|
│ │ │ │ ├── static acceptsIntersection(param) method
|
|
4448
4555
|
│ │ │ │ └── static acceptsPropWithIntersection(props) method
|
|
4449
4556
|
│ │ │ ├─┬ interface ISomething
|
|
@@ -6055,6 +6162,9 @@ exports[`jsii-tree --signatures 1`] = `
|
|
|
6055
6162
|
│ │ └── donotimport
|
|
6056
6163
|
│ ├── cdk22369
|
|
6057
6164
|
│ ├── composition
|
|
6165
|
+
│ ├─┬ covariantOverrides
|
|
6166
|
+
│ │ └─┬ submodules
|
|
6167
|
+
│ │ └── classOverrides
|
|
6058
6168
|
│ ├─┬ homonymousForwardReferences
|
|
6059
6169
|
│ │ └─┬ submodules
|
|
6060
6170
|
│ │ ├── bar
|
|
@@ -6144,6 +6254,18 @@ exports[`jsii-tree --types 1`] = `
|
|
|
6144
6254
|
│ │ │ └─┬ types
|
|
6145
6255
|
│ │ │ ├── class CompositeOperation
|
|
6146
6256
|
│ │ │ └── enum CompositionStringStyle
|
|
6257
|
+
│ │ ├─┬ covariantOverrides
|
|
6258
|
+
│ │ │ ├─┬ submodules
|
|
6259
|
+
│ │ │ │ └─┬ classOverrides
|
|
6260
|
+
│ │ │ │ └─┬ types
|
|
6261
|
+
│ │ │ │ ├── class Base
|
|
6262
|
+
│ │ │ │ ├── class Derived
|
|
6263
|
+
│ │ │ │ ├── class Middle
|
|
6264
|
+
│ │ │ │ ├── class SubSubclass
|
|
6265
|
+
│ │ │ │ ├── class Subclass
|
|
6266
|
+
│ │ │ │ ├── class Superclass
|
|
6267
|
+
│ │ │ │ └── interface IBase
|
|
6268
|
+
│ │ │ └── types
|
|
6147
6269
|
│ │ ├─┬ homonymousForwardReferences
|
|
6148
6270
|
│ │ │ ├─┬ submodules
|
|
6149
6271
|
│ │ │ │ ├─┬ bar
|
|
@@ -6566,6 +6688,9 @@ exports[`jsii-tree 1`] = `
|
|
|
6566
6688
|
│ │ └── donotimport
|
|
6567
6689
|
│ ├── cdk22369
|
|
6568
6690
|
│ ├── composition
|
|
6691
|
+
│ ├─┬ covariantOverrides
|
|
6692
|
+
│ │ └─┬ submodules
|
|
6693
|
+
│ │ └── classOverrides
|
|
6569
6694
|
│ ├─┬ homonymousForwardReferences
|
|
6570
6695
|
│ │ └─┬ submodules
|
|
6571
6696
|
│ │ ├── bar
|
|
@@ -14,6 +14,9 @@ exports[`defaults 1`] = `
|
|
|
14
14
|
│ │ └── donotimport
|
|
15
15
|
│ ├── cdk22369
|
|
16
16
|
│ ├── composition
|
|
17
|
+
│ ├─┬ covariantOverrides
|
|
18
|
+
│ │ └─┬ submodules
|
|
19
|
+
│ │ └── classOverrides
|
|
17
20
|
│ ├─┬ homonymousForwardReferences
|
|
18
21
|
│ │ └─┬ submodules
|
|
19
22
|
│ │ ├── bar
|
|
@@ -76,6 +79,9 @@ exports[`inheritance 1`] = `
|
|
|
76
79
|
│ │ └── donotimport
|
|
77
80
|
│ ├── cdk22369
|
|
78
81
|
│ ├── composition
|
|
82
|
+
│ ├─┬ covariantOverrides
|
|
83
|
+
│ │ └─┬ submodules
|
|
84
|
+
│ │ └── classOverrides
|
|
79
85
|
│ ├─┬ homonymousForwardReferences
|
|
80
86
|
│ │ └─┬ submodules
|
|
81
87
|
│ │ ├── bar
|
|
@@ -138,6 +144,9 @@ exports[`members 1`] = `
|
|
|
138
144
|
│ │ └── donotimport
|
|
139
145
|
│ ├── cdk22369
|
|
140
146
|
│ ├── composition
|
|
147
|
+
│ ├─┬ covariantOverrides
|
|
148
|
+
│ │ └─┬ submodules
|
|
149
|
+
│ │ └── classOverrides
|
|
141
150
|
│ ├─┬ homonymousForwardReferences
|
|
142
151
|
│ │ └─┬ submodules
|
|
143
152
|
│ │ ├── bar
|
|
@@ -360,6 +369,58 @@ exports[`showAll 1`] = `
|
|
|
360
369
|
│ │ │ └─┬ enum CompositionStringStyle
|
|
361
370
|
│ │ │ ├── NORMAL
|
|
362
371
|
│ │ │ └── DECORATED
|
|
372
|
+
│ │ ├─┬ covariantOverrides
|
|
373
|
+
│ │ │ ├─┬ submodules
|
|
374
|
+
│ │ │ │ └─┬ classOverrides
|
|
375
|
+
│ │ │ │ └─┬ types
|
|
376
|
+
│ │ │ │ ├─┬ class Base
|
|
377
|
+
│ │ │ │ │ ├── interfaces: IBase
|
|
378
|
+
│ │ │ │ │ └─┬ members
|
|
379
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
380
|
+
│ │ │ │ │ ├─┬ createSomething() method
|
|
381
|
+
│ │ │ │ │ │ └── returns: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
382
|
+
│ │ │ │ │ ├─┬ list property
|
|
383
|
+
│ │ │ │ │ │ ├── immutable
|
|
384
|
+
│ │ │ │ │ │ └── type: Array<jsii-calc.covariantOverrides.classOverrides.Superclass>
|
|
385
|
+
│ │ │ │ │ └─┬ something property
|
|
386
|
+
│ │ │ │ │ ├── immutable
|
|
387
|
+
│ │ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
388
|
+
│ │ │ │ ├─┬ class Derived
|
|
389
|
+
│ │ │ │ │ ├── base: Middle
|
|
390
|
+
│ │ │ │ │ └─┬ members
|
|
391
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
392
|
+
│ │ │ │ │ ├─┬ createSomething() method
|
|
393
|
+
│ │ │ │ │ │ └── returns: jsii-calc.covariantOverrides.classOverrides.SubSubclass
|
|
394
|
+
│ │ │ │ │ ├─┬ list property
|
|
395
|
+
│ │ │ │ │ │ ├── immutable
|
|
396
|
+
│ │ │ │ │ │ └── type: Array<jsii-calc.covariantOverrides.classOverrides.Superclass>
|
|
397
|
+
│ │ │ │ │ └─┬ something property
|
|
398
|
+
│ │ │ │ │ ├── immutable
|
|
399
|
+
│ │ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.SubSubclass
|
|
400
|
+
│ │ │ │ ├─┬ class Middle
|
|
401
|
+
│ │ │ │ │ ├── base: Base
|
|
402
|
+
│ │ │ │ │ └─┬ members
|
|
403
|
+
│ │ │ │ │ ├── <initializer>() initializer
|
|
404
|
+
│ │ │ │ │ └─┬ addUnrelatedMember property
|
|
405
|
+
│ │ │ │ │ └── type: number
|
|
406
|
+
│ │ │ │ ├─┬ class SubSubclass
|
|
407
|
+
│ │ │ │ │ ├── base: Subclass
|
|
408
|
+
│ │ │ │ │ └─┬ members
|
|
409
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
410
|
+
│ │ │ │ ├─┬ class Subclass
|
|
411
|
+
│ │ │ │ │ ├── base: Superclass
|
|
412
|
+
│ │ │ │ │ └─┬ members
|
|
413
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
414
|
+
│ │ │ │ ├─┬ class Superclass
|
|
415
|
+
│ │ │ │ │ └─┬ members
|
|
416
|
+
│ │ │ │ │ └── <initializer>() initializer
|
|
417
|
+
│ │ │ │ └─┬ interface IBase
|
|
418
|
+
│ │ │ │ └─┬ members
|
|
419
|
+
│ │ │ │ └─┬ something property
|
|
420
|
+
│ │ │ │ ├── abstract
|
|
421
|
+
│ │ │ │ ├── immutable
|
|
422
|
+
│ │ │ │ └── type: jsii-calc.covariantOverrides.classOverrides.Superclass
|
|
423
|
+
│ │ │ └── types
|
|
363
424
|
│ │ ├─┬ homonymousForwardReferences
|
|
364
425
|
│ │ │ ├─┬ submodules
|
|
365
426
|
│ │ │ │ ├─┬ bar
|
|
@@ -411,6 +472,10 @@ exports[`showAll 1`] = `
|
|
|
411
472
|
│ │ │ └─┬ types
|
|
412
473
|
│ │ │ ├─┬ class ConsumesIntersection
|
|
413
474
|
│ │ │ │ └─┬ members
|
|
475
|
+
│ │ │ │ ├─┬ <initializer>(props) initializer
|
|
476
|
+
│ │ │ │ │ └─┬ parameters
|
|
477
|
+
│ │ │ │ │ └─┬ props
|
|
478
|
+
│ │ │ │ │ └── type: jsii-calc.intersection.IntersectionProps
|
|
414
479
|
│ │ │ │ ├─┬ static acceptsIntersection(param) method
|
|
415
480
|
│ │ │ │ │ ├── static
|
|
416
481
|
│ │ │ │ │ ├─┬ parameters
|
|
@@ -3966,6 +4031,9 @@ exports[`signatures 1`] = `
|
|
|
3966
4031
|
│ │ └── donotimport
|
|
3967
4032
|
│ ├── cdk22369
|
|
3968
4033
|
│ ├── composition
|
|
4034
|
+
│ ├─┬ covariantOverrides
|
|
4035
|
+
│ │ └─┬ submodules
|
|
4036
|
+
│ │ └── classOverrides
|
|
3969
4037
|
│ ├─┬ homonymousForwardReferences
|
|
3970
4038
|
│ │ └─┬ submodules
|
|
3971
4039
|
│ │ ├── bar
|
|
@@ -4055,6 +4123,18 @@ exports[`types 1`] = `
|
|
|
4055
4123
|
│ │ │ └─┬ types
|
|
4056
4124
|
│ │ │ ├── class CompositeOperation
|
|
4057
4125
|
│ │ │ └── enum CompositionStringStyle
|
|
4126
|
+
│ │ ├─┬ covariantOverrides
|
|
4127
|
+
│ │ │ ├─┬ submodules
|
|
4128
|
+
│ │ │ │ └─┬ classOverrides
|
|
4129
|
+
│ │ │ │ └─┬ types
|
|
4130
|
+
│ │ │ │ ├── class Base
|
|
4131
|
+
│ │ │ │ ├── class Derived
|
|
4132
|
+
│ │ │ │ ├── class Middle
|
|
4133
|
+
│ │ │ │ ├── class SubSubclass
|
|
4134
|
+
│ │ │ │ ├── class Subclass
|
|
4135
|
+
│ │ │ │ ├── class Superclass
|
|
4136
|
+
│ │ │ │ └── interface IBase
|
|
4137
|
+
│ │ │ └── types
|
|
4058
4138
|
│ │ ├─┬ homonymousForwardReferences
|
|
4059
4139
|
│ │ │ ├─┬ submodules
|
|
4060
4140
|
│ │ │ │ ├─┬ bar
|
|
@@ -174,6 +174,12 @@ exports[`TypeSystem.classes lists all the classes in the typesystem 1`] = `
|
|
|
174
174
|
"jsii-calc.cdk16625.donotimport.UnimportedSubmoduleType",
|
|
175
175
|
"jsii-calc.cdk22369.AcceptsPath",
|
|
176
176
|
"jsii-calc.composition.CompositeOperation",
|
|
177
|
+
"jsii-calc.covariantOverrides.classOverrides.Base",
|
|
178
|
+
"jsii-calc.covariantOverrides.classOverrides.Derived",
|
|
179
|
+
"jsii-calc.covariantOverrides.classOverrides.Middle",
|
|
180
|
+
"jsii-calc.covariantOverrides.classOverrides.SubSubclass",
|
|
181
|
+
"jsii-calc.covariantOverrides.classOverrides.Subclass",
|
|
182
|
+
"jsii-calc.covariantOverrides.classOverrides.Superclass",
|
|
177
183
|
"jsii-calc.homonymousForwardReferences.bar.Consumer",
|
|
178
184
|
"jsii-calc.homonymousForwardReferences.foo.Consumer",
|
|
179
185
|
"jsii-calc.intersection.ConsumesIntersection",
|
package/test/features.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TEST_FEATURES = void 0;
|
|
4
|
-
exports.TEST_FEATURES = [
|
|
4
|
+
exports.TEST_FEATURES = [
|
|
5
|
+
'intersection-types',
|
|
6
|
+
'class-covariant-overrides',
|
|
7
|
+
];
|
|
5
8
|
//# sourceMappingURL=features.js.map
|