@powerlines/deepkit 0.4.89 → 0.4.91
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/dist/capnp.cjs +187 -0
- package/dist/capnp.d.cts +169 -0
- package/dist/capnp.d.ts +169 -0
- package/dist/capnp.js +2 -0
- package/dist/chunk-2V4ET57D.js +6954 -0
- package/dist/chunk-4WJJKR53.js +3731 -0
- package/dist/chunk-55HOZO7D.cjs +33 -0
- package/dist/chunk-6ETLMANX.js +3472 -0
- package/dist/chunk-6OXPIOZY.cjs +43 -0
- package/dist/chunk-7WAH4JD3.js +115 -0
- package/dist/chunk-B4PTD5KQ.js +4 -0
- package/dist/chunk-BTXPY3B4.js +27 -0
- package/dist/chunk-DGXATHAN.js +5185 -0
- package/dist/chunk-FEBG7WWO.js +11 -0
- package/dist/chunk-FX2P4HL7.cjs +14 -0
- package/dist/chunk-ITQKPDCW.cjs +3859 -0
- package/dist/chunk-JHEBLHYK.cjs +13 -0
- package/dist/chunk-LBHO5BRF.js +2251 -0
- package/dist/chunk-MERFAWZE.js +12 -0
- package/dist/chunk-OYRIJX67.cjs +3487 -0
- package/dist/chunk-PANPZ6S6.cjs +6 -0
- package/dist/chunk-QPSZUUB6.cjs +2259 -0
- package/dist/chunk-QQ7GKXIS.js +43 -0
- package/dist/chunk-SA3DCC4M.cjs +6968 -0
- package/dist/chunk-SKYW5GV2.cjs +5251 -0
- package/dist/chunk-U4JSDAXK.js +36 -0
- package/dist/chunk-WVKPC33H.cjs +49 -0
- package/dist/{vendor/chunk-KC74I2LN.cjs → chunk-YKFG2BZQ.cjs} +3 -5
- package/dist/index.cjs +242 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +11 -0
- package/dist/reflect-type.cjs +11 -0
- package/dist/reflect-type.d.cts +16 -0
- package/dist/reflect-type.d.ts +16 -0
- package/dist/reflect-type.js +2 -0
- package/dist/reflection-DTM1oT21.d.cts +1559 -0
- package/dist/reflection-DTM1oT21.d.ts +1559 -0
- package/dist/resolve-reflections.cjs +11 -0
- package/dist/resolve-reflections.d.cts +11 -0
- package/dist/resolve-reflections.d.ts +11 -0
- package/dist/resolve-reflections.js +2 -0
- package/dist/transformer.cjs +15 -0
- package/dist/transformer.d.cts +22 -0
- package/dist/transformer.d.ts +22 -0
- package/dist/transformer.js +2 -0
- package/dist/transpile.cjs +12 -0
- package/dist/transpile.d.cts +14 -0
- package/dist/transpile.d.ts +14 -0
- package/dist/transpile.js +3 -0
- package/dist/types.cjs +5 -0
- package/dist/types.d.cts +16 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.js +2 -0
- package/dist/utilities.cjs +35 -0
- package/dist/utilities.d.cts +49 -0
- package/dist/utilities.d.ts +49 -0
- package/dist/utilities.js +2 -0
- package/dist/vendor/{chunk-6PEHRAEP.js → chunk-5BKT4CS5.js} +0 -2
- package/dist/vendor/{chunk-W6QNYN5U.cjs → chunk-BDXVTHBY.cjs} +176 -178
- package/dist/vendor/{chunk-AXYJRGEC.js → chunk-BLN7QVCP.js} +1 -3
- package/dist/vendor/{chunk-ORGCWC7F.js → chunk-BR2FK5K7.js} +0 -2
- package/dist/vendor/chunk-EQXMWOHO.cjs +115 -0
- package/dist/vendor/{chunk-6ARUMLA5.js → chunk-MCNMRQDT.js} +0 -2
- package/dist/vendor/{chunk-3QJYIKMR.cjs → chunk-MO4O4UYI.cjs} +0 -2
- package/dist/vendor/{chunk-M6ZTTT3A.js → chunk-RH4YMONA.js} +1 -3
- package/dist/vendor/{chunk-VUVWVXGY.cjs → chunk-RZKB5IQZ.cjs} +0 -2
- package/dist/vendor/{chunk-WZXSRPYO.cjs → chunk-WOXMCJJU.cjs} +505 -507
- package/dist/vendor/compiler.cjs +12 -14
- package/dist/vendor/compiler.js +2 -4
- package/dist/vendor/config.cjs +9 -11
- package/dist/vendor/config.js +2 -4
- package/dist/vendor/core.cjs +130 -132
- package/dist/vendor/core.d.cts +0 -2
- package/dist/vendor/core.d.ts +0 -2
- package/dist/vendor/core.js +5 -4
- package/dist/vendor/index.cjs +17 -19
- package/dist/vendor/index.js +3 -5
- package/dist/vendor/type-compiler/compiler.cjs +46 -0
- package/dist/vendor/type-compiler/compiler.d.cts +1 -0
- package/dist/vendor/type-compiler/compiler.d.ts +1 -0
- package/dist/vendor/type-compiler/compiler.js +7 -0
- package/dist/vendor/type-compiler/config.cjs +36 -0
- package/dist/vendor/type-compiler/config.d.cts +6 -0
- package/dist/vendor/type-compiler/config.d.ts +6 -0
- package/dist/vendor/type-compiler/config.js +5 -0
- package/dist/vendor/type-compiler/index.cjs +108 -0
- package/dist/vendor/type-compiler/index.d.cts +1 -0
- package/dist/vendor/type-compiler/index.d.ts +1 -0
- package/dist/vendor/type-compiler/index.js +67 -0
- package/dist/vendor/type-spec.cjs +5 -7
- package/dist/vendor/type-spec.js +5 -4
- package/dist/vendor/type.cjs +691 -2271
- package/dist/vendor/type.js +92 -1609
- package/package.json +4 -4
- package/dist/vendor/chunk-3QJYIKMR.cjs.map +0 -1
- package/dist/vendor/chunk-6ARUMLA5.js.map +0 -1
- package/dist/vendor/chunk-6PEHRAEP.js.map +0 -1
- package/dist/vendor/chunk-AXYJRGEC.js.map +0 -1
- package/dist/vendor/chunk-KC74I2LN.cjs.map +0 -1
- package/dist/vendor/chunk-M6ZTTT3A.js.map +0 -1
- package/dist/vendor/chunk-ORGCWC7F.js.map +0 -1
- package/dist/vendor/chunk-VUVWVXGY.cjs.map +0 -1
- package/dist/vendor/chunk-W6QNYN5U.cjs.map +0 -1
- package/dist/vendor/chunk-WZXSRPYO.cjs.map +0 -1
- package/dist/vendor/compiler.cjs.map +0 -1
- package/dist/vendor/compiler.js.map +0 -1
- package/dist/vendor/config.cjs.map +0 -1
- package/dist/vendor/config.js.map +0 -1
- package/dist/vendor/core.cjs.map +0 -1
- package/dist/vendor/core.js.map +0 -1
- package/dist/vendor/index.cjs.map +0 -1
- package/dist/vendor/index.js.map +0 -1
- package/dist/vendor/type-spec.cjs.map +0 -1
- package/dist/vendor/type-spec.js.map +0 -1
- package/dist/vendor/type.cjs.map +0 -1
- package/dist/vendor/type.js.map +0 -1
package/dist/capnp.cjs
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSKYW5GV2_cjs = require('./chunk-SKYW5GV2.cjs');
|
|
4
|
+
require('./chunk-WVKPC33H.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "convertFromCapnp", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnp; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "convertFromCapnpArray", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpArray; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "convertFromCapnpBase", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpBase; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "convertFromCapnpClassType", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpClassType; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "convertFromCapnpDefault", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpDefault; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "convertFromCapnpEnum", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpEnum; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "convertFromCapnpFunction", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpFunction; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "convertFromCapnpIndexAccessOrigin", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpIndexAccessOrigin; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "convertFromCapnpInfer", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpInfer; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "convertFromCapnpIntersection", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpIntersection; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "convertFromCapnpLiteral", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpLiteral; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "convertFromCapnpMethodSignature", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpMethodSignature; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "convertFromCapnpObjectLiteral", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpObjectLiteral; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "convertFromCapnpOther", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpOther; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "convertFromCapnpParameter", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpParameter; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "convertFromCapnpProperty", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpProperty; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "convertFromCapnpPropertySignature", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpPropertySignature; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "convertFromCapnpSimple", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpSimple; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "convertFromCapnpTagsReflection", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpTagsReflection; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "convertFromCapnpTuple", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpTuple; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "convertFromCapnpTupleMember", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpTupleMember; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "convertFromCapnpUnion", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnpUnion; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "convertToCapnp", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnp; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "convertToCapnpArray", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpArray; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "convertToCapnpBase", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpBase; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "convertToCapnpClassType", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpClassType; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "convertToCapnpDefault", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpDefault; }
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "convertToCapnpEnum", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpEnum; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "convertToCapnpFunction", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpFunction; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "convertToCapnpIndexAccessOrigin", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpIndexAccessOrigin; }
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(exports, "convertToCapnpInfer", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpInfer; }
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "convertToCapnpIntersection", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpIntersection; }
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "convertToCapnpLiteral", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpLiteral; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "convertToCapnpMethod", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpMethod; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "convertToCapnpMethodSignature", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpMethodSignature; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "convertToCapnpObjectLiteral", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpObjectLiteral; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "convertToCapnpOther", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpOther; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "convertToCapnpParameter", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpParameter; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "convertToCapnpProperty", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpProperty; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "convertToCapnpPropertySignature", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpPropertySignature; }
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "convertToCapnpSimple", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpSimple; }
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "convertToCapnpTagsReflection", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpTagsReflection; }
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "convertToCapnpTuple", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpTuple; }
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "convertToCapnpTupleMember", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpTupleMember; }
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(exports, "convertToCapnpUnion", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
get: function () { return chunkSKYW5GV2_cjs.convertToCapnpUnion; }
|
|
187
|
+
});
|
package/dist/capnp.d.cts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { SerializedTypes, TagsReflection as TagsReflection$1, SerializedTypeReference, SerializedType as SerializedType$1, SimpleSerializedType as SimpleSerializedType$1, ReflectionKind, SerializedTypeLiteral as SerializedTypeLiteral$1, SerializedTypeMethodSignature as SerializedTypeMethodSignature$1, SerializedTypePropertySignature as SerializedTypePropertySignature$1, SerializedTypeTupleMember, SerializedTypeTuple, SerializedTypeProperty, SerializedTypeEnum, SerializedTypeIntersection, SerializedTypeArray, SerializedTypeUnion, SerializedTypeInfer, SerializedTypeFunction, SerializedTypeMethod, SerializedTypeClassType, SerializedTypeObjectLiteral, SerializedTypeParameter } from '@powerlines/deepkit/vendor/type';
|
|
2
|
+
import { List } from '@stryke/capnp';
|
|
3
|
+
import { S as SerializedType, T as TagsReflection, I as IndexAccessOrigin, a as SerializedType_Type, b as SerializedTypeOther, c as SimpleSerializedType, d as SerializedTypeLiteral, e as SerializedTypeMethodSignature, f as SerializedTypePropertySignature, D as DefaultValueReflection, g as SerializedTypeTupleMember$1, h as SerializedTypeTuple$1, i as SerializedTypeProperty$1, j as SerializedTypeEnum$1, k as SerializedTypeIntersection$1, l as SerializedTypeArray$1, m as SerializedTypeUnion$1, n as SerializedTypeInfer$1, o as SerializedTypeFunction$1, p as SerializedTypeMethod$1, q as SerializedTypeClassType$1, r as SerializedTypeObjectLiteral$1, s as SerializedTypeParameter$1 } from './reflection-DTM1oT21.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
7
|
+
*
|
|
8
|
+
* @param serializedTypes - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
9
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
10
|
+
*/
|
|
11
|
+
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType>): List<SerializedType>;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
14
|
+
*
|
|
15
|
+
* @param serializedTypes - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema
|
|
16
|
+
* @returns The [Deepkit](https://deepkit.io/) {@link SerializedTypes | serialized types} converted from the Cap'n Proto serialized type
|
|
17
|
+
*/
|
|
18
|
+
declare function convertFromCapnp(serializedTypes: List<SerializedType>): SerializedTypes;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
21
|
+
*
|
|
22
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
23
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
24
|
+
*/
|
|
25
|
+
declare function convertToCapnpTagsReflection(result: TagsReflection, serializedType?: TagsReflection$1): TagsReflection;
|
|
26
|
+
interface WithTagsReflection {
|
|
27
|
+
_hasTags: () => boolean;
|
|
28
|
+
tags?: {
|
|
29
|
+
alias: string[];
|
|
30
|
+
hidden: boolean;
|
|
31
|
+
domain: string;
|
|
32
|
+
title: string;
|
|
33
|
+
ignore: boolean;
|
|
34
|
+
internal: boolean;
|
|
35
|
+
readonly: boolean;
|
|
36
|
+
permission: string[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflection): {
|
|
40
|
+
alias: string[] | undefined;
|
|
41
|
+
hidden: boolean | undefined;
|
|
42
|
+
domain: string | undefined;
|
|
43
|
+
title: string | undefined;
|
|
44
|
+
ignore: boolean | undefined;
|
|
45
|
+
internal: boolean | undefined;
|
|
46
|
+
readonly: boolean | undefined;
|
|
47
|
+
permission: string[] | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
interface CapnpIndexAccessOriginSerializedType {
|
|
50
|
+
container: SerializedTypeReference;
|
|
51
|
+
index: SerializedTypeReference;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
55
|
+
*
|
|
56
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
57
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
58
|
+
*/
|
|
59
|
+
declare function convertToCapnpIndexAccessOrigin(result: IndexAccessOrigin, serializedType?: CapnpIndexAccessOriginSerializedType): IndexAccessOrigin;
|
|
60
|
+
interface WithIndexAccessOrigin {
|
|
61
|
+
_hasIndexAccessOrigin: () => boolean;
|
|
62
|
+
indexAccessOrigin?: {
|
|
63
|
+
container: {
|
|
64
|
+
id: number;
|
|
65
|
+
};
|
|
66
|
+
index: {
|
|
67
|
+
id: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
declare function convertFromCapnpIndexAccessOrigin(serializedType: WithIndexAccessOrigin): {
|
|
72
|
+
container: number;
|
|
73
|
+
index: number;
|
|
74
|
+
} | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
77
|
+
*
|
|
78
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
79
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
80
|
+
*/
|
|
81
|
+
declare function convertToCapnpBase(serializedType: SerializedType$1, result: SerializedType_Type): SerializedType_Type;
|
|
82
|
+
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType$1;
|
|
83
|
+
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType$1;
|
|
84
|
+
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType): SimpleSerializedType$1;
|
|
85
|
+
declare function convertToCapnpOther(serializedType: {
|
|
86
|
+
kind: ReflectionKind;
|
|
87
|
+
typeName?: string;
|
|
88
|
+
}, result: SerializedTypeOther): SerializedTypeOther;
|
|
89
|
+
declare function convertToCapnpSimple(serializedType: SimpleSerializedType$1, result: SimpleSerializedType): SimpleSerializedType;
|
|
90
|
+
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral): SerializedTypeLiteral$1;
|
|
91
|
+
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral$1, result: SerializedTypeLiteral): SerializedTypeLiteral;
|
|
92
|
+
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature): SerializedTypeMethodSignature$1;
|
|
93
|
+
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature$1, result: SerializedTypeMethodSignature): SerializedTypeMethodSignature;
|
|
94
|
+
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature): SerializedTypePropertySignature$1;
|
|
95
|
+
declare function convertToCapnpDefault(defaultValue: any, result: DefaultValueReflection): void;
|
|
96
|
+
declare function convertFromCapnpDefault(serializedType: DefaultValueReflection): any;
|
|
97
|
+
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature$1, result: SerializedTypePropertySignature): SerializedTypePropertySignature;
|
|
98
|
+
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember, result: SerializedTypeTupleMember$1): SerializedTypeTupleMember$1;
|
|
99
|
+
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember$1): SerializedTypeTupleMember;
|
|
100
|
+
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple, result: SerializedTypeTuple$1): SerializedTypeTuple$1;
|
|
101
|
+
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple$1): SerializedTypeTuple;
|
|
102
|
+
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty, result: SerializedTypeProperty$1): SerializedTypeProperty$1;
|
|
103
|
+
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty$1): SerializedTypeProperty;
|
|
104
|
+
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum, result: SerializedTypeEnum$1): SerializedTypeEnum$1;
|
|
105
|
+
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum$1): SerializedTypeEnum;
|
|
106
|
+
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection, result: SerializedTypeIntersection$1): SerializedTypeIntersection$1;
|
|
107
|
+
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection$1): SerializedTypeIntersection;
|
|
108
|
+
declare function convertToCapnpArray(serializedType: SerializedTypeArray, result: SerializedTypeArray$1): SerializedTypeArray$1;
|
|
109
|
+
declare function convertFromCapnpArray(serializedType: SerializedTypeArray$1): SerializedTypeArray;
|
|
110
|
+
/**
|
|
111
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
112
|
+
*
|
|
113
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
114
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
115
|
+
*/
|
|
116
|
+
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion, result: SerializedTypeUnion$1): SerializedTypeUnion$1;
|
|
117
|
+
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion$1): SerializedTypeUnion;
|
|
118
|
+
/**
|
|
119
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
120
|
+
*
|
|
121
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert.
|
|
122
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
123
|
+
*/
|
|
124
|
+
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer, result: SerializedTypeInfer$1): SerializedTypeInfer$1;
|
|
125
|
+
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer$1): SerializedTypeInfer;
|
|
126
|
+
/**
|
|
127
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
128
|
+
*
|
|
129
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
130
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
131
|
+
*/
|
|
132
|
+
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction, result: SerializedTypeFunction$1): SerializedTypeFunction$1;
|
|
133
|
+
/**
|
|
134
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
135
|
+
*
|
|
136
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
137
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
138
|
+
*/
|
|
139
|
+
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod, result: SerializedTypeMethod$1): SerializedTypeMethod$1;
|
|
140
|
+
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction$1): SerializedTypeFunction;
|
|
141
|
+
/**
|
|
142
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
143
|
+
*
|
|
144
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
145
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
146
|
+
*/
|
|
147
|
+
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType, result: SerializedTypeClassType$1): SerializedTypeClassType$1;
|
|
148
|
+
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType$1): SerializedTypeClassType;
|
|
149
|
+
/**
|
|
150
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
151
|
+
*
|
|
152
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
153
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
154
|
+
*/
|
|
155
|
+
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral, result: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral$1;
|
|
156
|
+
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral;
|
|
157
|
+
/**
|
|
158
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
159
|
+
*
|
|
160
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
161
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
162
|
+
*/
|
|
163
|
+
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter, result: SerializedTypeParameter$1): SerializedTypeParameter$1;
|
|
164
|
+
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter$1): SerializedTypeParameter;
|
|
165
|
+
|
|
166
|
+
declare type __ΩWithTagsReflection = any[];
|
|
167
|
+
declare type __ΩWithIndexAccessOrigin = any[];
|
|
168
|
+
|
|
169
|
+
export { type WithIndexAccessOrigin, type WithTagsReflection, type __ΩWithIndexAccessOrigin, type __Ω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 };
|
package/dist/capnp.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { SerializedTypes, TagsReflection as TagsReflection$1, SerializedTypeReference, SerializedType as SerializedType$1, SimpleSerializedType as SimpleSerializedType$1, ReflectionKind, SerializedTypeLiteral as SerializedTypeLiteral$1, SerializedTypeMethodSignature as SerializedTypeMethodSignature$1, SerializedTypePropertySignature as SerializedTypePropertySignature$1, SerializedTypeTupleMember, SerializedTypeTuple, SerializedTypeProperty, SerializedTypeEnum, SerializedTypeIntersection, SerializedTypeArray, SerializedTypeUnion, SerializedTypeInfer, SerializedTypeFunction, SerializedTypeMethod, SerializedTypeClassType, SerializedTypeObjectLiteral, SerializedTypeParameter } from '@powerlines/deepkit/vendor/type';
|
|
2
|
+
import { List } from '@stryke/capnp';
|
|
3
|
+
import { S as SerializedType, T as TagsReflection, I as IndexAccessOrigin, a as SerializedType_Type, b as SerializedTypeOther, c as SimpleSerializedType, d as SerializedTypeLiteral, e as SerializedTypeMethodSignature, f as SerializedTypePropertySignature, D as DefaultValueReflection, g as SerializedTypeTupleMember$1, h as SerializedTypeTuple$1, i as SerializedTypeProperty$1, j as SerializedTypeEnum$1, k as SerializedTypeIntersection$1, l as SerializedTypeArray$1, m as SerializedTypeUnion$1, n as SerializedTypeInfer$1, o as SerializedTypeFunction$1, p as SerializedTypeMethod$1, q as SerializedTypeClassType$1, r as SerializedTypeObjectLiteral$1, s as SerializedTypeParameter$1 } from './reflection-DTM1oT21.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
7
|
+
*
|
|
8
|
+
* @param serializedTypes - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
9
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
10
|
+
*/
|
|
11
|
+
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType>): List<SerializedType>;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
14
|
+
*
|
|
15
|
+
* @param serializedTypes - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema
|
|
16
|
+
* @returns The [Deepkit](https://deepkit.io/) {@link SerializedTypes | serialized types} converted from the Cap'n Proto serialized type
|
|
17
|
+
*/
|
|
18
|
+
declare function convertFromCapnp(serializedTypes: List<SerializedType>): SerializedTypes;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
21
|
+
*
|
|
22
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
23
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
24
|
+
*/
|
|
25
|
+
declare function convertToCapnpTagsReflection(result: TagsReflection, serializedType?: TagsReflection$1): TagsReflection;
|
|
26
|
+
interface WithTagsReflection {
|
|
27
|
+
_hasTags: () => boolean;
|
|
28
|
+
tags?: {
|
|
29
|
+
alias: string[];
|
|
30
|
+
hidden: boolean;
|
|
31
|
+
domain: string;
|
|
32
|
+
title: string;
|
|
33
|
+
ignore: boolean;
|
|
34
|
+
internal: boolean;
|
|
35
|
+
readonly: boolean;
|
|
36
|
+
permission: string[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflection): {
|
|
40
|
+
alias: string[] | undefined;
|
|
41
|
+
hidden: boolean | undefined;
|
|
42
|
+
domain: string | undefined;
|
|
43
|
+
title: string | undefined;
|
|
44
|
+
ignore: boolean | undefined;
|
|
45
|
+
internal: boolean | undefined;
|
|
46
|
+
readonly: boolean | undefined;
|
|
47
|
+
permission: string[] | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
interface CapnpIndexAccessOriginSerializedType {
|
|
50
|
+
container: SerializedTypeReference;
|
|
51
|
+
index: SerializedTypeReference;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
55
|
+
*
|
|
56
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
57
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
58
|
+
*/
|
|
59
|
+
declare function convertToCapnpIndexAccessOrigin(result: IndexAccessOrigin, serializedType?: CapnpIndexAccessOriginSerializedType): IndexAccessOrigin;
|
|
60
|
+
interface WithIndexAccessOrigin {
|
|
61
|
+
_hasIndexAccessOrigin: () => boolean;
|
|
62
|
+
indexAccessOrigin?: {
|
|
63
|
+
container: {
|
|
64
|
+
id: number;
|
|
65
|
+
};
|
|
66
|
+
index: {
|
|
67
|
+
id: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
declare function convertFromCapnpIndexAccessOrigin(serializedType: WithIndexAccessOrigin): {
|
|
72
|
+
container: number;
|
|
73
|
+
index: number;
|
|
74
|
+
} | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
77
|
+
*
|
|
78
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
79
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
80
|
+
*/
|
|
81
|
+
declare function convertToCapnpBase(serializedType: SerializedType$1, result: SerializedType_Type): SerializedType_Type;
|
|
82
|
+
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType$1;
|
|
83
|
+
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType$1;
|
|
84
|
+
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType): SimpleSerializedType$1;
|
|
85
|
+
declare function convertToCapnpOther(serializedType: {
|
|
86
|
+
kind: ReflectionKind;
|
|
87
|
+
typeName?: string;
|
|
88
|
+
}, result: SerializedTypeOther): SerializedTypeOther;
|
|
89
|
+
declare function convertToCapnpSimple(serializedType: SimpleSerializedType$1, result: SimpleSerializedType): SimpleSerializedType;
|
|
90
|
+
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral): SerializedTypeLiteral$1;
|
|
91
|
+
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral$1, result: SerializedTypeLiteral): SerializedTypeLiteral;
|
|
92
|
+
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature): SerializedTypeMethodSignature$1;
|
|
93
|
+
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature$1, result: SerializedTypeMethodSignature): SerializedTypeMethodSignature;
|
|
94
|
+
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature): SerializedTypePropertySignature$1;
|
|
95
|
+
declare function convertToCapnpDefault(defaultValue: any, result: DefaultValueReflection): void;
|
|
96
|
+
declare function convertFromCapnpDefault(serializedType: DefaultValueReflection): any;
|
|
97
|
+
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature$1, result: SerializedTypePropertySignature): SerializedTypePropertySignature;
|
|
98
|
+
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember, result: SerializedTypeTupleMember$1): SerializedTypeTupleMember$1;
|
|
99
|
+
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember$1): SerializedTypeTupleMember;
|
|
100
|
+
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple, result: SerializedTypeTuple$1): SerializedTypeTuple$1;
|
|
101
|
+
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple$1): SerializedTypeTuple;
|
|
102
|
+
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty, result: SerializedTypeProperty$1): SerializedTypeProperty$1;
|
|
103
|
+
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty$1): SerializedTypeProperty;
|
|
104
|
+
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum, result: SerializedTypeEnum$1): SerializedTypeEnum$1;
|
|
105
|
+
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum$1): SerializedTypeEnum;
|
|
106
|
+
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection, result: SerializedTypeIntersection$1): SerializedTypeIntersection$1;
|
|
107
|
+
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection$1): SerializedTypeIntersection;
|
|
108
|
+
declare function convertToCapnpArray(serializedType: SerializedTypeArray, result: SerializedTypeArray$1): SerializedTypeArray$1;
|
|
109
|
+
declare function convertFromCapnpArray(serializedType: SerializedTypeArray$1): SerializedTypeArray;
|
|
110
|
+
/**
|
|
111
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
112
|
+
*
|
|
113
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
114
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
115
|
+
*/
|
|
116
|
+
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion, result: SerializedTypeUnion$1): SerializedTypeUnion$1;
|
|
117
|
+
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion$1): SerializedTypeUnion;
|
|
118
|
+
/**
|
|
119
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
120
|
+
*
|
|
121
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert.
|
|
122
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
123
|
+
*/
|
|
124
|
+
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer, result: SerializedTypeInfer$1): SerializedTypeInfer$1;
|
|
125
|
+
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer$1): SerializedTypeInfer;
|
|
126
|
+
/**
|
|
127
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
128
|
+
*
|
|
129
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
130
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
131
|
+
*/
|
|
132
|
+
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction, result: SerializedTypeFunction$1): SerializedTypeFunction$1;
|
|
133
|
+
/**
|
|
134
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
135
|
+
*
|
|
136
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
137
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
138
|
+
*/
|
|
139
|
+
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod, result: SerializedTypeMethod$1): SerializedTypeMethod$1;
|
|
140
|
+
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction$1): SerializedTypeFunction;
|
|
141
|
+
/**
|
|
142
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
143
|
+
*
|
|
144
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
145
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
146
|
+
*/
|
|
147
|
+
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType, result: SerializedTypeClassType$1): SerializedTypeClassType$1;
|
|
148
|
+
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType$1): SerializedTypeClassType;
|
|
149
|
+
/**
|
|
150
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
151
|
+
*
|
|
152
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
153
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
154
|
+
*/
|
|
155
|
+
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral, result: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral$1;
|
|
156
|
+
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral;
|
|
157
|
+
/**
|
|
158
|
+
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
159
|
+
*
|
|
160
|
+
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
161
|
+
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
162
|
+
*/
|
|
163
|
+
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter, result: SerializedTypeParameter$1): SerializedTypeParameter$1;
|
|
164
|
+
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter$1): SerializedTypeParameter;
|
|
165
|
+
|
|
166
|
+
declare type __ΩWithTagsReflection = any[];
|
|
167
|
+
declare type __ΩWithIndexAccessOrigin = any[];
|
|
168
|
+
|
|
169
|
+
export { type WithIndexAccessOrigin, type WithTagsReflection, type __ΩWithIndexAccessOrigin, type __Ω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 };
|
package/dist/capnp.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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 } from './chunk-DGXATHAN.js';
|
|
2
|
+
import './chunk-QQ7GKXIS.js';
|