@powerlines/deepkit 0.6.167 → 0.7.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/deepkit-install.cjs +55 -90
- package/dist/capnp-BLx1WTBU.cjs +5175 -0
- package/dist/capnp-BiGNkOmV.mjs +4905 -0
- package/dist/capnp.cjs +47 -186
- package/dist/capnp.d.cts +78 -77
- package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
- package/dist/capnp.mjs +3 -0
- package/dist/chunk-C0xms8kb.cjs +34 -0
- package/dist/esbuild-plugin.cjs +47 -11
- package/dist/esbuild-plugin.d.cts +20 -18
- package/dist/esbuild-plugin.d.mts +35 -0
- package/dist/esbuild-plugin.mjs +48 -0
- package/dist/index.cjs +69 -250
- package/dist/index.d.cts +10 -19
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +11 -0
- package/dist/reflect-type.cjs +24 -12
- package/dist/reflect-type.d.cts +7 -5
- package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
- package/dist/reflect-type.mjs +24 -0
- package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
- package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
- package/dist/resolve-reflections.cjs +15 -9
- package/dist/resolve-reflections.d.cts +4 -2
- package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
- package/dist/resolve-reflections.mjs +16 -0
- package/dist/rolldown-plugin.cjs +44 -11
- package/dist/rolldown-plugin.d.cts +5 -3
- package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
- package/dist/rolldown-plugin.mjs +45 -0
- package/dist/transformer.cjs +52 -13
- package/dist/transformer.d.cts +6 -4
- package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
- package/dist/transformer.mjs +51 -0
- package/dist/transpile.cjs +29 -10
- package/dist/transpile.d.cts +6 -4
- package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
- package/dist/transpile.mjs +29 -0
- package/dist/types.cjs +0 -4
- package/dist/types.d.cts +9 -9
- package/dist/{types.d.ts → types.d.mts} +9 -9
- package/dist/types.mjs +1 -0
- package/dist/utilities.cjs +116 -33
- package/dist/utilities.d.cts +4 -2
- package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
- package/dist/utilities.mjs +111 -0
- package/dist/vendor/core.cjs +1240 -513
- package/dist/vendor/core.mjs +1116 -0
- package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
- package/dist/vendor/string-BuMgdahD.mjs +2467 -0
- package/dist/vendor/type-BMLjRtLY.cjs +202 -0
- package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
- package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
- package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
- package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
- package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
- package/dist/vendor/type-compiler/compiler.cjs +11 -43
- package/dist/vendor/type-compiler/compiler.d.cts +2 -3
- package/dist/vendor/type-compiler/compiler.d.mts +2 -0
- package/dist/vendor/type-compiler/compiler.mjs +3 -0
- package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
- package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
- package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
- package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
- package/dist/vendor/type-compiler/config.cjs +9 -34
- package/dist/vendor/type-compiler/config.d.cts +2 -1
- package/dist/vendor/type-compiler/config.d.mts +2 -0
- package/dist/vendor/type-compiler/config.mjs +3 -0
- package/dist/vendor/type-compiler/index.cjs +56 -129
- package/dist/vendor/type-compiler/index.d.cts +22 -3
- package/dist/vendor/type-compiler/index.d.mts +22 -0
- package/dist/vendor/type-compiler/index.mjs +50 -0
- package/dist/vendor/type-spec.cjs +11 -12
- package/dist/vendor/type-spec.mjs +3 -0
- package/dist/vendor/type.cjs +8407 -17892
- package/dist/vendor/type.d.cts +10 -196
- package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
- package/dist/vendor/type.mjs +9109 -0
- package/package.json +43 -31
- package/schemas/reflection.cjs +4018 -4129
- package/schemas/reflection.d.cts +30 -38
- package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
- package/schemas/reflection.mjs +4036 -0
- package/dist/capnp.js +0 -2
- package/dist/chunk-23YNDVRG.js +0 -34
- package/dist/chunk-27RKMKSF.cjs +0 -50
- package/dist/chunk-2XDQUCXZ.js +0 -2392
- package/dist/chunk-34OFD7LS.cjs +0 -68
- package/dist/chunk-7FXYDYVQ.cjs +0 -5246
- package/dist/chunk-7QZGCBH7.cjs +0 -11
- package/dist/chunk-ALM6UMVU.js +0 -9
- package/dist/chunk-BLLXF42T.cjs +0 -41
- package/dist/chunk-H3Q3XL3D.js +0 -19
- package/dist/chunk-HPVJ6OV3.cjs +0 -31
- package/dist/chunk-JQUKKAFM.js +0 -48
- package/dist/chunk-KK7TQA7L.cjs +0 -25
- package/dist/chunk-NPV2346T.js +0 -25
- package/dist/chunk-ORA4UQMU.cjs +0 -2
- package/dist/chunk-OUGDFUKJ.cjs +0 -2400
- package/dist/chunk-OULCUN6I.js +0 -1
- package/dist/chunk-SHUYVCID.js +0 -4
- package/dist/chunk-TDYIUJGY.js +0 -5180
- package/dist/chunk-USNT2KNT.cjs +0 -6
- package/dist/chunk-WYEFKIRL.js +0 -66
- package/dist/esbuild-plugin.d.ts +0 -33
- package/dist/esbuild-plugin.js +0 -4
- package/dist/index.d.ts +0 -19
- package/dist/index.js +0 -10
- package/dist/reflect-type.js +0 -5
- package/dist/resolve-reflections.js +0 -2
- package/dist/rolldown-plugin.js +0 -4
- package/dist/transformer.js +0 -2
- package/dist/transpile.js +0 -3
- package/dist/types.js +0 -1
- package/dist/utilities.js +0 -2
- package/dist/vendor/chunk-5BKT4CS5.js +0 -28
- package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
- package/dist/vendor/chunk-BR2FK5K7.js +0 -109
- package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
- package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
- package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
- package/dist/vendor/core.js +0 -2
- package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
- package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
- package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
- package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
- package/dist/vendor/type-compiler/compiler.d.ts +0 -3
- package/dist/vendor/type-compiler/compiler.js +0 -5
- package/dist/vendor/type-compiler/config.d.ts +0 -1
- package/dist/vendor/type-compiler/config.js +0 -5
- package/dist/vendor/type-compiler/index.d.ts +0 -3
- package/dist/vendor/type-compiler/index.js +0 -66
- package/dist/vendor/type-spec.js +0 -2
- package/dist/vendor/type.js +0 -18359
- package/schemas/reflection.js +0 -4153
- /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
- /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,251 +1,70 @@
|
|
|
1
|
-
'
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_capnp = require('./capnp-BLx1WTBU.cjs');
|
|
3
|
+
const require_transformer = require('./transformer.cjs');
|
|
4
|
+
const require_transpile = require('./transpile.cjs');
|
|
5
|
+
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
6
|
+
const require_reflect_type = require('./reflect-type.cjs');
|
|
7
|
+
const require_resolve_reflections = require('./resolve-reflections.cjs');
|
|
8
|
+
const require_rolldown_plugin = require('./rolldown-plugin.cjs');
|
|
9
|
+
require('./types.cjs');
|
|
10
|
+
const require_utilities = require('./utilities.cjs');
|
|
2
11
|
|
|
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
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpDefault; }
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "convertFromCapnpEnum", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpEnum; }
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(exports, "convertFromCapnpFunction", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpFunction; }
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "convertFromCapnpIndexAccessOrigin", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpIndexAccessOrigin; }
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "convertFromCapnpInfer", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpInfer; }
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(exports, "convertFromCapnpIntersection", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpIntersection; }
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "convertFromCapnpLiteral", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpLiteral; }
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, "convertFromCapnpMethodSignature", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpMethodSignature; }
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(exports, "convertFromCapnpObjectLiteral", {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpObjectLiteral; }
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "convertFromCapnpOther", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpOther; }
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, "convertFromCapnpParameter", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpParameter; }
|
|
103
|
-
});
|
|
104
|
-
Object.defineProperty(exports, "convertFromCapnpProperty", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpProperty; }
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "convertFromCapnpPropertySignature", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpPropertySignature; }
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, "convertFromCapnpSimple", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpSimple; }
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(exports, "convertFromCapnpTagsReflection", {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpTagsReflection; }
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "convertFromCapnpTuple", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpTuple; }
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "convertFromCapnpTupleMember", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpTupleMember; }
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(exports, "convertFromCapnpUnion", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertFromCapnpUnion; }
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "convertToCapnp", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnp; }
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "convertToCapnpArray", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpArray; }
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "convertToCapnpBase", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpBase; }
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "convertToCapnpClassType", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpClassType; }
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(exports, "convertToCapnpDefault", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpDefault; }
|
|
151
|
-
});
|
|
152
|
-
Object.defineProperty(exports, "convertToCapnpEnum", {
|
|
153
|
-
enumerable: true,
|
|
154
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpEnum; }
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "convertToCapnpFunction", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpFunction; }
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "convertToCapnpIndexAccessOrigin", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpIndexAccessOrigin; }
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "convertToCapnpInfer", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpInfer; }
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "convertToCapnpIntersection", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpIntersection; }
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(exports, "convertToCapnpLiteral", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpLiteral; }
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(exports, "convertToCapnpMethod", {
|
|
177
|
-
enumerable: true,
|
|
178
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpMethod; }
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "convertToCapnpMethodSignature", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpMethodSignature; }
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(exports, "convertToCapnpObjectLiteral", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpObjectLiteral; }
|
|
187
|
-
});
|
|
188
|
-
Object.defineProperty(exports, "convertToCapnpOther", {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpOther; }
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "convertToCapnpParameter", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpParameter; }
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(exports, "convertToCapnpProperty", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpProperty; }
|
|
199
|
-
});
|
|
200
|
-
Object.defineProperty(exports, "convertToCapnpPropertySignature", {
|
|
201
|
-
enumerable: true,
|
|
202
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpPropertySignature; }
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "convertToCapnpSimple", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpSimple; }
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(exports, "convertToCapnpTagsReflection", {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpTagsReflection; }
|
|
211
|
-
});
|
|
212
|
-
Object.defineProperty(exports, "convertToCapnpTuple", {
|
|
213
|
-
enumerable: true,
|
|
214
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpTuple; }
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "convertToCapnpTupleMember", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpTupleMember; }
|
|
219
|
-
});
|
|
220
|
-
Object.defineProperty(exports, "convertToCapnpUnion", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function () { return chunk7FXYDYVQ_cjs.convertToCapnpUnion; }
|
|
223
|
-
});
|
|
224
|
-
Object.defineProperty(exports, "reflectType", {
|
|
225
|
-
enumerable: true,
|
|
226
|
-
get: function () { return chunkKK7TQA7L_cjs.reflectType; }
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "esbuildPlugin", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function () { return chunk34OFD7LS_cjs.esbuildPlugin; }
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(exports, "getReflectionsPath", {
|
|
233
|
-
enumerable: true,
|
|
234
|
-
get: function () { return chunk7QZGCBH7_cjs.getReflectionsPath; }
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(exports, "rolldownPlugin", {
|
|
237
|
-
enumerable: true,
|
|
238
|
-
get: function () { return chunk27RKMKSF_cjs.rolldownPlugin; }
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "transpile", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function () { return chunkHPVJ6OV3_cjs.transpile; }
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(exports, "createDeclarationTransformer", {
|
|
245
|
-
enumerable: true,
|
|
246
|
-
get: function () { return chunkBLLXF42T_cjs.createDeclarationTransformer; }
|
|
247
|
-
});
|
|
248
|
-
Object.defineProperty(exports, "createTransformer", {
|
|
249
|
-
enumerable: true,
|
|
250
|
-
get: function () { return chunkBLLXF42T_cjs.createTransformer; }
|
|
251
|
-
});
|
|
12
|
+
exports.convertFromCapnp = require_capnp.convertFromCapnp;
|
|
13
|
+
exports.convertFromCapnpArray = require_capnp.convertFromCapnpArray;
|
|
14
|
+
exports.convertFromCapnpBase = require_capnp.convertFromCapnpBase;
|
|
15
|
+
exports.convertFromCapnpClassType = require_capnp.convertFromCapnpClassType;
|
|
16
|
+
exports.convertFromCapnpDefault = require_capnp.convertFromCapnpDefault;
|
|
17
|
+
exports.convertFromCapnpEnum = require_capnp.convertFromCapnpEnum;
|
|
18
|
+
exports.convertFromCapnpFunction = require_capnp.convertFromCapnpFunction;
|
|
19
|
+
exports.convertFromCapnpIndexAccessOrigin = require_capnp.convertFromCapnpIndexAccessOrigin;
|
|
20
|
+
exports.convertFromCapnpInfer = require_capnp.convertFromCapnpInfer;
|
|
21
|
+
exports.convertFromCapnpIntersection = require_capnp.convertFromCapnpIntersection;
|
|
22
|
+
exports.convertFromCapnpLiteral = require_capnp.convertFromCapnpLiteral;
|
|
23
|
+
exports.convertFromCapnpMethodSignature = require_capnp.convertFromCapnpMethodSignature;
|
|
24
|
+
exports.convertFromCapnpObjectLiteral = require_capnp.convertFromCapnpObjectLiteral;
|
|
25
|
+
exports.convertFromCapnpOther = require_capnp.convertFromCapnpOther;
|
|
26
|
+
exports.convertFromCapnpParameter = require_capnp.convertFromCapnpParameter;
|
|
27
|
+
exports.convertFromCapnpProperty = require_capnp.convertFromCapnpProperty;
|
|
28
|
+
exports.convertFromCapnpPropertySignature = require_capnp.convertFromCapnpPropertySignature;
|
|
29
|
+
exports.convertFromCapnpSimple = require_capnp.convertFromCapnpSimple;
|
|
30
|
+
exports.convertFromCapnpTagsReflection = require_capnp.convertFromCapnpTagsReflection;
|
|
31
|
+
exports.convertFromCapnpTuple = require_capnp.convertFromCapnpTuple;
|
|
32
|
+
exports.convertFromCapnpTupleMember = require_capnp.convertFromCapnpTupleMember;
|
|
33
|
+
exports.convertFromCapnpUnion = require_capnp.convertFromCapnpUnion;
|
|
34
|
+
exports.convertToCapnp = require_capnp.convertToCapnp;
|
|
35
|
+
exports.convertToCapnpArray = require_capnp.convertToCapnpArray;
|
|
36
|
+
exports.convertToCapnpBase = require_capnp.convertToCapnpBase;
|
|
37
|
+
exports.convertToCapnpClassType = require_capnp.convertToCapnpClassType;
|
|
38
|
+
exports.convertToCapnpDefault = require_capnp.convertToCapnpDefault;
|
|
39
|
+
exports.convertToCapnpEnum = require_capnp.convertToCapnpEnum;
|
|
40
|
+
exports.convertToCapnpFunction = require_capnp.convertToCapnpFunction;
|
|
41
|
+
exports.convertToCapnpIndexAccessOrigin = require_capnp.convertToCapnpIndexAccessOrigin;
|
|
42
|
+
exports.convertToCapnpInfer = require_capnp.convertToCapnpInfer;
|
|
43
|
+
exports.convertToCapnpIntersection = require_capnp.convertToCapnpIntersection;
|
|
44
|
+
exports.convertToCapnpLiteral = require_capnp.convertToCapnpLiteral;
|
|
45
|
+
exports.convertToCapnpMethod = require_capnp.convertToCapnpMethod;
|
|
46
|
+
exports.convertToCapnpMethodSignature = require_capnp.convertToCapnpMethodSignature;
|
|
47
|
+
exports.convertToCapnpObjectLiteral = require_capnp.convertToCapnpObjectLiteral;
|
|
48
|
+
exports.convertToCapnpOther = require_capnp.convertToCapnpOther;
|
|
49
|
+
exports.convertToCapnpParameter = require_capnp.convertToCapnpParameter;
|
|
50
|
+
exports.convertToCapnpProperty = require_capnp.convertToCapnpProperty;
|
|
51
|
+
exports.convertToCapnpPropertySignature = require_capnp.convertToCapnpPropertySignature;
|
|
52
|
+
exports.convertToCapnpSimple = require_capnp.convertToCapnpSimple;
|
|
53
|
+
exports.convertToCapnpTagsReflection = require_capnp.convertToCapnpTagsReflection;
|
|
54
|
+
exports.convertToCapnpTuple = require_capnp.convertToCapnpTuple;
|
|
55
|
+
exports.convertToCapnpTupleMember = require_capnp.convertToCapnpTupleMember;
|
|
56
|
+
exports.convertToCapnpUnion = require_capnp.convertToCapnpUnion;
|
|
57
|
+
exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
|
|
58
|
+
exports.createTransformer = require_transformer.createTransformer;
|
|
59
|
+
exports.esbuildPlugin = require_esbuild_plugin.esbuildPlugin;
|
|
60
|
+
exports.getEnumReflectionType = require_utilities.getEnumReflectionType;
|
|
61
|
+
exports.getReflectionsPath = require_resolve_reflections.getReflectionsPath;
|
|
62
|
+
exports.getUnionTypes = require_utilities.getUnionTypes;
|
|
63
|
+
exports.isStringUnion = require_utilities.isStringUnion;
|
|
64
|
+
exports.kindToName = require_utilities.kindToName;
|
|
65
|
+
exports.reflectType = require_reflect_type.reflectType;
|
|
66
|
+
exports.rolldownPlugin = require_rolldown_plugin.rolldownPlugin;
|
|
67
|
+
exports.stringifyDefaultValue = require_utilities.stringifyDefaultValue;
|
|
68
|
+
exports.stringifyStringValue = require_utilities.stringifyStringValue;
|
|
69
|
+
exports.stringifyValue = require_utilities.stringifyValue;
|
|
70
|
+
exports.transpile = require_transpile.transpile;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import '@stryke/capnp';
|
|
12
|
-
import './reflection-9KUpjPqV.cjs';
|
|
13
|
-
import 'esbuild';
|
|
14
|
-
import 'powerlines';
|
|
15
|
-
import '@deepkit/type-compiler/config';
|
|
16
|
-
import '@stryke/types/configuration';
|
|
17
|
-
import 'rolldown';
|
|
18
|
-
import 'typescript';
|
|
19
|
-
import '@powerlines/deepkit/vendor/type-compiler';
|
|
1
|
+
import { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from "./capnp.cjs";
|
|
2
|
+
import { ESBuildPluginOptions, ReflectionConfig, __ΩESBuildPluginOptions, __ΩReflectionConfig, esbuildPlugin } from "./esbuild-plugin.cjs";
|
|
3
|
+
import { reflectType } from "./reflect-type.cjs";
|
|
4
|
+
import { getReflectionsPath } from "./resolve-reflections.cjs";
|
|
5
|
+
import { rolldownPlugin } from "./rolldown-plugin.cjs";
|
|
6
|
+
import { createDeclarationTransformer, createTransformer } from "./transformer.cjs";
|
|
7
|
+
import { transpile } from "./transpile.cjs";
|
|
8
|
+
import { ContextReflectionRecord, Reflection, ReflectionRecord, __ΩContextReflectionRecord, __ΩReflection, __ΩReflectionRecord } from "./types.cjs";
|
|
9
|
+
import { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from "./utilities.cjs";
|
|
10
|
+
export { ContextReflectionRecord, ESBuildPluginOptions, Reflection, ReflectionConfig, ReflectionRecord, WithIndexAccessOrigin, WithTagsReflection, __ΩContextReflectionRecord, __ΩESBuildPluginOptions, __ΩReflection, __ΩReflectionConfig, __ΩReflectionRecord, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion, createDeclarationTransformer, createTransformer, esbuildPlugin, getEnumReflectionType, getReflectionsPath, getUnionTypes, isStringUnion, kindToName, reflectType, rolldownPlugin, stringifyDefaultValue, stringifyStringValue, stringifyValue, transpile };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from "./capnp.mjs";
|
|
2
|
+
import { ESBuildPluginOptions, ReflectionConfig, __ΩESBuildPluginOptions, __ΩReflectionConfig, esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
3
|
+
import { reflectType } from "./reflect-type.mjs";
|
|
4
|
+
import { getReflectionsPath } from "./resolve-reflections.mjs";
|
|
5
|
+
import { rolldownPlugin } from "./rolldown-plugin.mjs";
|
|
6
|
+
import { createDeclarationTransformer, createTransformer } from "./transformer.mjs";
|
|
7
|
+
import { transpile } from "./transpile.mjs";
|
|
8
|
+
import { ContextReflectionRecord, Reflection, ReflectionRecord, __ΩContextReflectionRecord, __ΩReflection, __ΩReflectionRecord } from "./types.mjs";
|
|
9
|
+
import { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from "./utilities.mjs";
|
|
10
|
+
export { ContextReflectionRecord, ESBuildPluginOptions, Reflection, ReflectionConfig, ReflectionRecord, WithIndexAccessOrigin, WithTagsReflection, __ΩContextReflectionRecord, __ΩESBuildPluginOptions, __ΩReflection, __ΩReflectionConfig, __ΩReflectionRecord, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion, createDeclarationTransformer, createTransformer, esbuildPlugin, getEnumReflectionType, getReflectionsPath, getUnionTypes, isStringUnion, kindToName, reflectType, rolldownPlugin, stringifyDefaultValue, stringifyStringValue, stringifyValue, transpile };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BiGNkOmV.mjs";
|
|
2
|
+
import { createDeclarationTransformer, createTransformer } from "./transformer.mjs";
|
|
3
|
+
import { transpile } from "./transpile.mjs";
|
|
4
|
+
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
5
|
+
import { reflectType } from "./reflect-type.mjs";
|
|
6
|
+
import { getReflectionsPath } from "./resolve-reflections.mjs";
|
|
7
|
+
import { rolldownPlugin } from "./rolldown-plugin.mjs";
|
|
8
|
+
import "./types.mjs";
|
|
9
|
+
import { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from "./utilities.mjs";
|
|
10
|
+
|
|
11
|
+
export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion, createDeclarationTransformer, createTransformer, esbuildPlugin, getEnumReflectionType, getReflectionsPath, getUnionTypes, isStringUnion, kindToName, reflectType, rolldownPlugin, stringifyDefaultValue, stringifyStringValue, stringifyValue, transpile };
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
'
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_chunk = require('./chunk-C0xms8kb.cjs');
|
|
3
|
+
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
4
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
|
+
let defu = require("defu");
|
|
6
|
+
defu = require_chunk.__toESM(defu);
|
|
7
|
+
let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
|
|
2
8
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
//#region src/reflect-type.ts
|
|
10
|
+
/**
|
|
11
|
+
* Compiles a type definition to a module.
|
|
12
|
+
*
|
|
13
|
+
* @param context - The context object containing the environment paths.
|
|
14
|
+
* @param type - The type definition to compile.
|
|
15
|
+
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
16
|
+
* @returns A promise that resolves to the compiled module.
|
|
17
|
+
*/
|
|
18
|
+
async function reflectType(context, type, overrides = {}) {
|
|
19
|
+
return (0, _powerlines_deepkit_vendor_type.reflect)(await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(context, type, (0, defu.default)(overrides, { plugins: [require_esbuild_plugin.esbuildPlugin(context, {
|
|
20
|
+
reflection: "default",
|
|
21
|
+
reflectionLevel: "verbose"
|
|
22
|
+
})] })));
|
|
23
|
+
}
|
|
8
24
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "reflectType", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkKK7TQA7L_cjs.reflectType; }
|
|
14
|
-
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.reflectType = reflectType;
|
package/dist/reflect-type.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Type } from
|
|
2
|
-
import {
|
|
3
|
-
import { BuildOptions } from
|
|
4
|
-
import {
|
|
1
|
+
import { Type } from "@powerlines/deepkit/vendor/type";
|
|
2
|
+
import { PluginContext } from "@powerlines/core";
|
|
3
|
+
import { BuildOptions } from "esbuild";
|
|
4
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
5
|
|
|
6
|
+
//#region src/reflect-type.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* Compiles a type definition to a module.
|
|
8
9
|
*
|
|
@@ -12,5 +13,6 @@ import { PluginContext } from 'powerlines';
|
|
|
12
13
|
* @returns A promise that resolves to the compiled module.
|
|
13
14
|
*/
|
|
14
15
|
declare function reflectType<TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinition, overrides?: Partial<BuildOptions>): Promise<Type>;
|
|
15
|
-
|
|
16
|
+
//#endregion
|
|
16
17
|
export { reflectType };
|
|
18
|
+
//# sourceMappingURL=reflect-type.d.cts.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Type } from
|
|
2
|
-
import {
|
|
3
|
-
import { BuildOptions } from
|
|
4
|
-
import {
|
|
1
|
+
import { Type } from "@powerlines/deepkit/vendor/type";
|
|
2
|
+
import { PluginContext } from "@powerlines/core";
|
|
3
|
+
import { BuildOptions } from "esbuild";
|
|
4
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
5
|
|
|
6
|
+
//#region src/reflect-type.d.ts
|
|
6
7
|
/**
|
|
7
8
|
* Compiles a type definition to a module.
|
|
8
9
|
*
|
|
@@ -12,5 +13,6 @@ import { PluginContext } from 'powerlines';
|
|
|
12
13
|
* @returns A promise that resolves to the compiled module.
|
|
13
14
|
*/
|
|
14
15
|
declare function reflectType<TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinition, overrides?: Partial<BuildOptions>): Promise<Type>;
|
|
15
|
-
|
|
16
|
+
//#endregion
|
|
16
17
|
export { reflectType };
|
|
18
|
+
//# sourceMappingURL=reflect-type.d.mts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
2
|
+
import { reflect } from "@powerlines/deepkit/vendor/type";
|
|
3
|
+
import defu from "defu";
|
|
4
|
+
import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
|
|
5
|
+
|
|
6
|
+
//#region src/reflect-type.ts
|
|
7
|
+
/**
|
|
8
|
+
* Compiles a type definition to a module.
|
|
9
|
+
*
|
|
10
|
+
* @param context - The context object containing the environment paths.
|
|
11
|
+
* @param type - The type definition to compile.
|
|
12
|
+
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
13
|
+
* @returns A promise that resolves to the compiled module.
|
|
14
|
+
*/
|
|
15
|
+
async function reflectType(context, type, overrides = {}) {
|
|
16
|
+
return reflect(await resolve(context, type, defu(overrides, { plugins: [esbuildPlugin(context, {
|
|
17
|
+
reflection: "default",
|
|
18
|
+
reflectionLevel: "verbose"
|
|
19
|
+
})] })));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { reflectType };
|
|
24
|
+
//# sourceMappingURL=reflect-type.mjs.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as $ from
|
|
1
|
+
import * as $ from "@stryke/capnp";
|
|
2
2
|
|
|
3
|
+
//#region schemas/reflection.d.ts
|
|
3
4
|
declare const ReflectionKind: {
|
|
4
5
|
readonly NEVER: 0;
|
|
5
6
|
readonly ANY: 1;
|
|
@@ -44,8 +45,7 @@ declare const ReflectionVisibility: {
|
|
|
44
45
|
readonly PROTECTED: 1;
|
|
45
46
|
readonly PRIVATE: 2;
|
|
46
47
|
};
|
|
47
|
-
type ReflectionVisibility =
|
|
48
|
-
(typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
|
|
48
|
+
type ReflectionVisibility = (typeof ReflectionVisibility)[keyof typeof ReflectionVisibility];
|
|
49
49
|
declare class TagsReflection extends $.Struct {
|
|
50
50
|
static readonly _capnp: {
|
|
51
51
|
displayName: string;
|
|
@@ -85,8 +85,7 @@ declare const DefaultValueReflection_Value_Which: {
|
|
|
85
85
|
readonly FLOAT: 3;
|
|
86
86
|
readonly STRING: 4;
|
|
87
87
|
};
|
|
88
|
-
type DefaultValueReflection_Value_Which =
|
|
89
|
-
(typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
|
|
88
|
+
type DefaultValueReflection_Value_Which = (typeof DefaultValueReflection_Value_Which)[keyof typeof DefaultValueReflection_Value_Which];
|
|
90
89
|
declare class DefaultValueReflection_Value extends $.Struct {
|
|
91
90
|
static readonly UNDEFINED: 0;
|
|
92
91
|
static readonly BOOLEAN: 1;
|
|
@@ -239,9 +238,7 @@ declare class SerializedTypeClassType extends $.Struct {
|
|
|
239
238
|
set globalObject(value: boolean);
|
|
240
239
|
get classType(): string;
|
|
241
240
|
set classType(value: string);
|
|
242
|
-
_adoptExtendsArguments(
|
|
243
|
-
value: $.Orphan<$.List<SerializedTypeReference>>
|
|
244
|
-
): void;
|
|
241
|
+
_adoptExtendsArguments(value: $.Orphan<$.List<SerializedTypeReference>>): void;
|
|
245
242
|
_disownExtendsArguments(): $.Orphan<$.List<SerializedTypeReference>>;
|
|
246
243
|
get extendsArguments(): $.List<SerializedTypeReference>;
|
|
247
244
|
_hasExtendsArguments(): boolean;
|
|
@@ -1176,8 +1173,7 @@ declare const SerializedTypeLiteral_Literal_Which: {
|
|
|
1176
1173
|
readonly BIGINT: 4;
|
|
1177
1174
|
readonly REGEX: 5;
|
|
1178
1175
|
};
|
|
1179
|
-
type SerializedTypeLiteral_Literal_Which =
|
|
1180
|
-
(typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
|
|
1176
|
+
type SerializedTypeLiteral_Literal_Which = (typeof SerializedTypeLiteral_Literal_Which)[keyof typeof SerializedTypeLiteral_Literal_Which];
|
|
1181
1177
|
declare class SerializedTypeLiteral_Literal extends $.Struct {
|
|
1182
1178
|
static readonly SYMBOL: 0;
|
|
1183
1179
|
static readonly STRING: 1;
|
|
@@ -1337,8 +1333,7 @@ declare const SerializedType_Type_Which: {
|
|
|
1337
1333
|
*/
|
|
1338
1334
|
readonly OTHER: 22;
|
|
1339
1335
|
};
|
|
1340
|
-
type SerializedType_Type_Which =
|
|
1341
|
-
(typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
|
|
1336
|
+
type SerializedType_Type_Which = (typeof SerializedType_Type_Which)[keyof typeof SerializedType_Type_Which];
|
|
1342
1337
|
declare class SerializedType_Type extends $.Struct {
|
|
1343
1338
|
static readonly SIMPLE: 0;
|
|
1344
1339
|
static readonly LITERAL: 1;
|
|
@@ -1473,9 +1468,7 @@ declare class SerializedType_Type extends $.Struct {
|
|
|
1473
1468
|
_initIndexSignature(): SerializedTypeIndexSignature;
|
|
1474
1469
|
get _isIndexSignature(): boolean;
|
|
1475
1470
|
set indexSignature(value: SerializedTypeIndexSignature);
|
|
1476
|
-
_adoptPropertySignature(
|
|
1477
|
-
value: $.Orphan<SerializedTypePropertySignature>
|
|
1478
|
-
): void;
|
|
1471
|
+
_adoptPropertySignature(value: $.Orphan<SerializedTypePropertySignature>): void;
|
|
1479
1472
|
_disownPropertySignature(): $.Orphan<SerializedTypePropertySignature>;
|
|
1480
1473
|
get propertySignature(): SerializedTypePropertySignature;
|
|
1481
1474
|
_hasPropertySignature(): boolean;
|
|
@@ -1563,5 +1556,6 @@ declare class SerializedTypes extends $.Struct {
|
|
|
1563
1556
|
set types(value: $.List<SerializedType>);
|
|
1564
1557
|
toString(): string;
|
|
1565
1558
|
}
|
|
1566
|
-
|
|
1567
|
-
export {
|
|
1559
|
+
//#endregion
|
|
1560
|
+
export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
|
|
1561
|
+
//# sourceMappingURL=reflection-BwdnCwaK.d.cts.map
|