@powerlines/deepkit 0.7.6 → 0.7.8
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-BqAglxrS.mjs → capnp-BYEUkMpr.mjs} +265 -265
- package/dist/{capnp-BLCHrDSY.cjs → capnp-C8UENZHc.cjs} +41 -41
- package/dist/capnp.cjs +1 -1
- package/dist/capnp.d.cts +41 -41
- package/dist/capnp.d.mts +41 -41
- package/dist/capnp.mjs +1 -1
- package/dist/config-B6lMYoYG.d.mts +32 -0
- package/dist/config-C8svu6th.d.cts +32 -0
- package/dist/esbuild-plugin.d.cts +1 -1
- package/dist/esbuild-plugin.d.mts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/reflect-type.cjs +2 -2
- package/dist/reflect-type.d.cts +1 -1
- package/dist/reflect-type.d.mts +1 -1
- package/dist/reflect-type.mjs +1 -1
- package/dist/{reflection-lA4jBKKP.d.mts → reflection-DaLz4ZT5.d.mts} +1 -1
- package/dist/transformer-BiefehPu.mjs +1360 -0
- package/dist/transformer-DS0zKU7l.cjs +1367 -0
- package/dist/transformer.cjs +3 -51
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -49
- package/dist/transpile.cjs +1 -1
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/utilities.cjs +42 -42
- package/dist/utilities.d.cts +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utilities.mjs +1 -1
- package/dist/vendor/chunk-BmvPcxpV.cjs +41 -0
- package/dist/{compiler-DLeSXEon.d.mts → vendor/compiler-BYhFaVxE.d.mts} +3 -3
- package/dist/{compiler-TYAnj4GK.cjs → vendor/compiler-Ci5aO9pY.cjs} +2 -2
- package/dist/{compiler-CoBHJbw6.mjs → vendor/compiler-CqkzeoNX.mjs} +3 -3
- package/dist/{compiler-B-zwyGQf.d.cts → vendor/compiler-Dz2b4nOM.d.cts} +3 -3
- package/dist/{config-DCmu3CV2.d.cts → vendor/config-BTErH18l.d.mts} +1 -1
- package/dist/{config-SjpQNPJf.d.mts → vendor/config-Cc2qE8fH.d.cts} +1 -1
- package/dist/{config-ldWMxkkM.mjs → vendor/config-eSNKiBGB.mjs} +1 -1
- package/dist/vendor/core.cjs +1 -1
- package/dist/vendor/core.d.cts +1 -1
- package/dist/vendor/core.d.mts +1 -1
- package/dist/vendor/core.mjs +1 -1
- package/dist/{string-CjkshhTG.mjs → vendor/string-DoT35ViA.mjs} +1 -1
- package/dist/{type-DR66Hepn.d.cts → vendor/type-2yMJb9Mw.d.cts} +1 -1
- package/dist/{type-C4eOl66J.d.mts → vendor/type-BoBEcrg7.d.mts} +1 -1
- package/dist/vendor/type-compiler/compiler.cjs +1 -1
- package/dist/vendor/type-compiler/compiler.d.cts +1 -1
- package/dist/vendor/type-compiler/compiler.d.mts +1 -1
- package/dist/vendor/type-compiler/compiler.mjs +1 -1
- package/dist/vendor/type-compiler/config.cjs +1 -1
- package/dist/vendor/type-compiler/config.d.cts +1 -1
- package/dist/vendor/type-compiler/config.d.mts +1 -1
- package/dist/vendor/type-compiler/config.mjs +1 -1
- package/dist/vendor/type-compiler/index.cjs +3 -3
- package/dist/vendor/type-compiler/index.d.cts +2 -2
- package/dist/vendor/type-compiler/index.d.mts +2 -2
- package/dist/vendor/type-compiler/index.mjs +2 -2
- package/dist/vendor/type-spec.cjs +1 -1
- package/dist/vendor/type-spec.d.cts +1 -1
- package/dist/vendor/type-spec.d.mts +1 -1
- package/dist/vendor/type-spec.mjs +1 -1
- package/dist/{type-BWm74eaQ.mjs → vendor/type-wscUl8NW.mjs} +1 -1
- package/dist/vendor/type.cjs +9375 -268
- package/dist/vendor/type.d.cts +2969 -3
- package/dist/vendor/type.d.mts +2969 -3
- package/dist/vendor/type.mjs +9109 -3
- package/dist/{types-Bb6lL3KL.d.cts → vendor/types-BwPWMe3m.d.mts} +1 -1
- package/dist/{types-DYGcIrk3.d.mts → vendor/types-exLGvFgG.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/config-DDRKbv_W.d.mts +0 -1
- package/dist/config-GPeRZeGl.d.cts +0 -1
- package/dist/type-8AL5U7vn.d.cts +0 -2969
- package/dist/type-C7UXbXfx.cjs +0 -10688
- package/dist/type-SyDc32SL.d.mts +0 -2969
- package/dist/type-ma8o4dJG.mjs +0 -9110
- /package/dist/{chunk-CgI6uo-e.mjs → vendor/chunk-CgI6uo-e.mjs} +0 -0
- /package/dist/{config-V3ttv0UZ.cjs → vendor/config-BbFVGRVh.cjs} +0 -0
- /package/dist/{string-CpVz34Gv.cjs → vendor/string-LTCnMzW_.cjs} +0 -0
- /package/dist/{type-DhqntM0q.cjs → vendor/type-fEQrgtBF.cjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
2
|
-
|
|
2
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
3
3
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
4
4
|
let _stryke_capnp = require("@stryke/capnp");
|
|
5
5
|
_stryke_capnp = require_chunk.__toESM(_stryke_capnp);
|
|
6
6
|
|
|
7
7
|
//#region schemas/reflection.ts
|
|
8
|
-
const ReflectionVisibility = {
|
|
8
|
+
const ReflectionVisibility$1 = {
|
|
9
9
|
PUBLIC: 0,
|
|
10
10
|
PROTECTED: 1,
|
|
11
11
|
PRIVATE: 2
|
|
@@ -4092,23 +4092,23 @@ function convertFromCapnpIndexAccessOrigin(serializedType) {
|
|
|
4092
4092
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
4093
4093
|
*/
|
|
4094
4094
|
function convertToCapnpBase(serializedType, result) {
|
|
4095
|
-
if (serializedType.kind ===
|
|
4096
|
-
else if (serializedType.kind ===
|
|
4097
|
-
else if (serializedType.kind ===
|
|
4098
|
-
else if (serializedType.kind ===
|
|
4099
|
-
else if (serializedType.kind ===
|
|
4100
|
-
else if (serializedType.kind ===
|
|
4101
|
-
else if (serializedType.kind ===
|
|
4102
|
-
else if (serializedType.kind ===
|
|
4103
|
-
else if (serializedType.kind ===
|
|
4104
|
-
else if (serializedType.kind ===
|
|
4105
|
-
else if (serializedType.kind ===
|
|
4106
|
-
else if (serializedType.kind ===
|
|
4107
|
-
else if (serializedType.kind ===
|
|
4108
|
-
else if (serializedType.kind ===
|
|
4109
|
-
else if (serializedType.kind ===
|
|
4110
|
-
else if (serializedType.kind ===
|
|
4111
|
-
else if (serializedType.kind ===
|
|
4095
|
+
if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral) convertToCapnpObjectLiteral(serializedType, result._initObjectLiteral());
|
|
4096
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.class) convertToCapnpClassType(serializedType, result._initClassType());
|
|
4097
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.parameter) convertToCapnpParameter(serializedType, result._initParameter());
|
|
4098
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.function) convertToCapnpFunction(serializedType, result._initFunction());
|
|
4099
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.method) convertToCapnpMethod(serializedType, result._initMethod());
|
|
4100
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.infer) convertToCapnpInfer(serializedType, result._initInfer());
|
|
4101
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.union) convertToCapnpUnion(serializedType, result._initUnion());
|
|
4102
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.array) convertToCapnpArray(serializedType, result._initArray());
|
|
4103
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.intersection) convertToCapnpIntersection(serializedType, result._initIntersection());
|
|
4104
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.enum) convertToCapnpEnum(serializedType, result._initEnum());
|
|
4105
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.property) convertToCapnpProperty(serializedType, result._initProperty());
|
|
4106
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.tuple) convertToCapnpTuple(serializedType, result._initTuple());
|
|
4107
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.tupleMember) convertToCapnpTupleMember(serializedType, result._initTupleMember());
|
|
4108
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.propertySignature) convertToCapnpPropertySignature(serializedType, result._initPropertySignature());
|
|
4109
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.methodSignature) convertToCapnpMethodSignature(serializedType, result._initMethodSignature());
|
|
4110
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.literal) convertToCapnpLiteral(serializedType, result._initLiteral());
|
|
4111
|
+
else if (serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.never || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.any || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.unknown || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.void || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.object || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.string || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.number || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.boolean || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.symbol || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.bigint || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.null || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.undefined || serializedType.kind === _powerlines_deepkit_vendor_type.ReflectionKind.regexp) convertToCapnpSimple(serializedType, result._initSimple());
|
|
4112
4112
|
else convertToCapnpOther(serializedType, result._initOther());
|
|
4113
4113
|
return result;
|
|
4114
4114
|
}
|
|
@@ -4181,7 +4181,7 @@ function convertToCapnpSimple(serializedType, result) {
|
|
|
4181
4181
|
}
|
|
4182
4182
|
function convertFromCapnpLiteral(serializedType) {
|
|
4183
4183
|
return {
|
|
4184
|
-
kind:
|
|
4184
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.literal,
|
|
4185
4185
|
literal: serializedType.literal._isString ? serializedType.literal.string : serializedType.literal._isNumber ? serializedType.literal.number : serializedType.literal._isBoolean ? serializedType.literal.boolean : serializedType.literal._isBigint ? {
|
|
4186
4186
|
type: "bigint",
|
|
4187
4187
|
value: serializedType.literal.bigint.value
|
|
@@ -4237,7 +4237,7 @@ function convertToCapnpLiteral(serializedType, result) {
|
|
|
4237
4237
|
}
|
|
4238
4238
|
function convertFromCapnpMethodSignature(serializedType) {
|
|
4239
4239
|
return {
|
|
4240
|
-
kind:
|
|
4240
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.methodSignature,
|
|
4241
4241
|
name: serializedType.name,
|
|
4242
4242
|
typeName: serializedType.typeName || void 0,
|
|
4243
4243
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4270,7 +4270,7 @@ function convertToCapnpMethodSignature(serializedType, result) {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
function convertFromCapnpPropertySignature(serializedType) {
|
|
4272
4272
|
return {
|
|
4273
|
-
kind:
|
|
4273
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.propertySignature,
|
|
4274
4274
|
name: serializedType.name,
|
|
4275
4275
|
typeName: serializedType.typeName || void 0,
|
|
4276
4276
|
description: serializedType.description,
|
|
@@ -4355,7 +4355,7 @@ function convertToCapnpTupleMember(serializedType, result) {
|
|
|
4355
4355
|
}
|
|
4356
4356
|
function convertFromCapnpTupleMember(serializedType) {
|
|
4357
4357
|
return {
|
|
4358
|
-
kind:
|
|
4358
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.tupleMember,
|
|
4359
4359
|
type: serializedType.type.id,
|
|
4360
4360
|
typeName: serializedType.typeName || void 0,
|
|
4361
4361
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4389,7 +4389,7 @@ function convertToCapnpTuple(serializedType, result) {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
function convertFromCapnpTuple(serializedType) {
|
|
4391
4391
|
return {
|
|
4392
|
-
kind:
|
|
4392
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.tuple,
|
|
4393
4393
|
typeName: serializedType.typeName || void 0,
|
|
4394
4394
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => convertFromCapnpTupleMember(t)) : [],
|
|
4395
4395
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4403,7 +4403,7 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4403
4403
|
result.description = serializedType.description || "";
|
|
4404
4404
|
result.optional = serializedType.optional ?? false;
|
|
4405
4405
|
result.readonly = serializedType.readonly ?? false;
|
|
4406
|
-
result.visibility = serializedType.visibility ===
|
|
4406
|
+
result.visibility = serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4407
4407
|
result.abstract = serializedType.abstract ?? false;
|
|
4408
4408
|
result.name = String(serializedType.name) || "";
|
|
4409
4409
|
if (typeof serializedType.default !== "undefined") {
|
|
@@ -4432,13 +4432,13 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
function convertFromCapnpProperty(serializedType) {
|
|
4434
4434
|
return {
|
|
4435
|
-
kind:
|
|
4435
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.property,
|
|
4436
4436
|
typeName: serializedType.typeName || void 0,
|
|
4437
4437
|
description: serializedType.description,
|
|
4438
4438
|
default: convertFromCapnpDefault(serializedType.default),
|
|
4439
4439
|
optional: serializedType.optional ? true : void 0,
|
|
4440
4440
|
readonly: serializedType.readonly ? true : void 0,
|
|
4441
|
-
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ?
|
|
4441
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? _powerlines_deepkit_vendor_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? _powerlines_deepkit_vendor_type.ReflectionVisibility.protected : _powerlines_deepkit_vendor_type.ReflectionVisibility.private,
|
|
4442
4442
|
abstract: serializedType.abstract ? true : void 0,
|
|
4443
4443
|
name: serializedType.name,
|
|
4444
4444
|
type: serializedType.type.id,
|
|
@@ -4485,7 +4485,7 @@ function convertToCapnpEnum(serializedType, result) {
|
|
|
4485
4485
|
}
|
|
4486
4486
|
function convertFromCapnpEnum(serializedType) {
|
|
4487
4487
|
return {
|
|
4488
|
-
kind:
|
|
4488
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.enum,
|
|
4489
4489
|
typeName: serializedType.typeName || void 0,
|
|
4490
4490
|
indexType: serializedType.indexType.id,
|
|
4491
4491
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4526,7 +4526,7 @@ function convertToCapnpIntersection(serializedType, result) {
|
|
|
4526
4526
|
}
|
|
4527
4527
|
function convertFromCapnpIntersection(serializedType) {
|
|
4528
4528
|
return {
|
|
4529
|
-
kind:
|
|
4529
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.intersection,
|
|
4530
4530
|
typeName: serializedType.typeName || void 0,
|
|
4531
4531
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4532
4532
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4559,7 +4559,7 @@ function convertToCapnpArray(serializedType, result) {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
function convertFromCapnpArray(serializedType) {
|
|
4561
4561
|
return {
|
|
4562
|
-
kind:
|
|
4562
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.array,
|
|
4563
4563
|
typeName: serializedType.typeName || void 0,
|
|
4564
4564
|
type: serializedType.type.id,
|
|
4565
4565
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4601,7 +4601,7 @@ function convertToCapnpUnion(serializedType, result) {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
function convertFromCapnpUnion(serializedType) {
|
|
4603
4603
|
return {
|
|
4604
|
-
kind:
|
|
4604
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.union,
|
|
4605
4605
|
typeName: serializedType.typeName || void 0,
|
|
4606
4606
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4607
4607
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4637,7 +4637,7 @@ function convertToCapnpInfer(serializedType, result) {
|
|
|
4637
4637
|
}
|
|
4638
4638
|
function convertFromCapnpInfer(serializedType) {
|
|
4639
4639
|
return {
|
|
4640
|
-
kind:
|
|
4640
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.infer,
|
|
4641
4641
|
typeName: serializedType.typeName || void 0,
|
|
4642
4642
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4643
4643
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
@@ -4691,7 +4691,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4691
4691
|
result.kind = serializedType.kind;
|
|
4692
4692
|
result.typeName = serializedType.typeName || "";
|
|
4693
4693
|
result.abstract = serializedType.abstract ?? false;
|
|
4694
|
-
result.visibility = serializedType.visibility ===
|
|
4694
|
+
result.visibility = serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4695
4695
|
if (serializedType.decorators?.length) {
|
|
4696
4696
|
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4697
4697
|
serializedType.decorators.forEach((d, index) => {
|
|
@@ -4720,7 +4720,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4720
4720
|
}
|
|
4721
4721
|
function convertFromCapnpFunction(serializedType) {
|
|
4722
4722
|
return {
|
|
4723
|
-
kind:
|
|
4723
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.function,
|
|
4724
4724
|
name: serializedType.name,
|
|
4725
4725
|
typeName: serializedType.typeName || void 0,
|
|
4726
4726
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4733,12 +4733,12 @@ function convertFromCapnpFunction(serializedType) {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
function convertFromCapnpMethod(serializedType) {
|
|
4735
4735
|
return {
|
|
4736
|
-
kind:
|
|
4736
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.method,
|
|
4737
4737
|
name: serializedType.name,
|
|
4738
4738
|
typeName: serializedType.typeName || void 0,
|
|
4739
4739
|
abstract: serializedType.abstract ? true : void 0,
|
|
4740
4740
|
return: serializedType.return.id,
|
|
4741
|
-
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ?
|
|
4741
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? _powerlines_deepkit_vendor_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? _powerlines_deepkit_vendor_type.ReflectionVisibility.protected : _powerlines_deepkit_vendor_type.ReflectionVisibility.private,
|
|
4742
4742
|
parameters: serializedType._hasParameters() ? serializedType.parameters.map((parameter) => convertFromCapnpParameter(parameter)) : []
|
|
4743
4743
|
};
|
|
4744
4744
|
}
|
|
@@ -4791,7 +4791,7 @@ function convertToCapnpClassType(serializedType, result) {
|
|
|
4791
4791
|
}
|
|
4792
4792
|
function convertFromCapnpClassType(serializedType) {
|
|
4793
4793
|
return {
|
|
4794
|
-
kind:
|
|
4794
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.class,
|
|
4795
4795
|
typeName: serializedType.typeName || void 0,
|
|
4796
4796
|
classType: serializedType.classType,
|
|
4797
4797
|
globalObject: serializedType.globalObject ? true : void 0,
|
|
@@ -4839,7 +4839,7 @@ function convertToCapnpObjectLiteral(serializedType, result) {
|
|
|
4839
4839
|
}
|
|
4840
4840
|
function convertFromCapnpObjectLiteral(serializedType) {
|
|
4841
4841
|
return {
|
|
4842
|
-
kind:
|
|
4842
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
|
|
4843
4843
|
typeName: serializedType.typeName || void 0,
|
|
4844
4844
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4845
4845
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
@@ -4860,7 +4860,7 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
4860
4860
|
result.name = serializedType.name || "";
|
|
4861
4861
|
result.optional = serializedType.optional ?? false;
|
|
4862
4862
|
result.readonly = serializedType.readonly ?? false;
|
|
4863
|
-
result.visibility = serializedType.visibility ===
|
|
4863
|
+
result.visibility = serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.public ? ReflectionVisibility$1.PUBLIC : serializedType.visibility === _powerlines_deepkit_vendor_type.ReflectionVisibility.protected ? ReflectionVisibility$1.PROTECTED : ReflectionVisibility$1.PRIVATE;
|
|
4864
4864
|
if (typeof serializedType.default !== "undefined") {
|
|
4865
4865
|
const defaultValue = result._initDefault();
|
|
4866
4866
|
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
@@ -4887,13 +4887,13 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
function convertFromCapnpParameter(serializedType) {
|
|
4889
4889
|
return {
|
|
4890
|
-
kind:
|
|
4890
|
+
kind: _powerlines_deepkit_vendor_type.ReflectionKind.parameter,
|
|
4891
4891
|
typeName: serializedType.typeName || void 0,
|
|
4892
4892
|
name: serializedType.name,
|
|
4893
4893
|
default: convertFromCapnpDefault(serializedType.default),
|
|
4894
4894
|
optional: serializedType.optional ? true : void 0,
|
|
4895
4895
|
readonly: serializedType.readonly ? true : void 0,
|
|
4896
|
-
visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ?
|
|
4896
|
+
visibility: serializedType.visibility === ReflectionVisibility$1.PUBLIC ? _powerlines_deepkit_vendor_type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility$1.PROTECTED ? _powerlines_deepkit_vendor_type.ReflectionVisibility.protected : _powerlines_deepkit_vendor_type.ReflectionVisibility.private,
|
|
4897
4897
|
type: serializedType.type.id,
|
|
4898
4898
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4899
4899
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
package/dist/capnp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_capnp = require('./capnp-
|
|
2
|
+
const require_capnp = require('./capnp-C8UENZHc.cjs');
|
|
3
3
|
|
|
4
4
|
exports.convertFromCapnp = require_capnp.convertFromCapnp;
|
|
5
5
|
exports.convertFromCapnpArray = require_capnp.convertFromCapnpArray;
|
package/dist/capnp.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as SimpleSerializedType, _ as SerializedTypePropertySignature, a as SerializedTypeClassType, b as SerializedTypeUnion, c as SerializedTypeInfer, d as SerializedTypeMethod, f as SerializedTypeMethodSignature, g as SerializedTypeProperty, h as SerializedTypeParameter, i as SerializedTypeArray, l as SerializedTypeIntersection, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum, p as SerializedTypeObjectLiteral, r as SerializedType, s as SerializedTypeFunction, t as DefaultValueReflection, u as SerializedTypeLiteral, v as SerializedTypeTuple, w as TagsReflection, x as SerializedType_Type, y as SerializedTypeTupleMember } from "./reflection-DGOuMF8F.cjs";
|
|
2
|
-
import {
|
|
1
|
+
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-DGOuMF8F.cjs";
|
|
2
|
+
import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
import { List } from "@stryke/capnp";
|
|
4
4
|
|
|
5
5
|
//#region src/capnp.d.ts
|
|
@@ -9,21 +9,21 @@ import { List } from "@stryke/capnp";
|
|
|
9
9
|
* @param serializedTypes - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
10
10
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
11
11
|
*/
|
|
12
|
-
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType>): List<SerializedType>;
|
|
12
|
+
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType$1>): List<SerializedType$1>;
|
|
13
13
|
/**
|
|
14
14
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
15
15
|
*
|
|
16
16
|
* @param serializedTypes - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema
|
|
17
17
|
* @returns The [Deepkit](https://deepkit.io/) {@link SerializedTypes | serialized types} converted from the Cap'n Proto serialized type
|
|
18
18
|
*/
|
|
19
|
-
declare function convertFromCapnp(serializedTypes: List<SerializedType>): SerializedTypes;
|
|
19
|
+
declare function convertFromCapnp(serializedTypes: List<SerializedType$1>): SerializedTypes;
|
|
20
20
|
/**
|
|
21
21
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
22
22
|
*
|
|
23
23
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
24
24
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
25
25
|
*/
|
|
26
|
-
declare function convertToCapnpTagsReflection(result: TagsReflection, serializedType?: TagsReflection
|
|
26
|
+
declare function convertToCapnpTagsReflection(result: TagsReflection$1, serializedType?: TagsReflection): TagsReflection$1;
|
|
27
27
|
interface WithTagsReflection {
|
|
28
28
|
_hasTags: () => boolean;
|
|
29
29
|
tags?: {
|
|
@@ -79,90 +79,90 @@ declare function convertFromCapnpIndexAccessOrigin(serializedType: WithIndexAcce
|
|
|
79
79
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
80
80
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
81
81
|
*/
|
|
82
|
-
declare function convertToCapnpBase(serializedType: SerializedType
|
|
83
|
-
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType
|
|
84
|
-
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType
|
|
85
|
-
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType): SimpleSerializedType
|
|
82
|
+
declare function convertToCapnpBase(serializedType: SerializedType, result: SerializedType_Type): SerializedType_Type;
|
|
83
|
+
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType;
|
|
84
|
+
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType;
|
|
85
|
+
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType$1): SimpleSerializedType;
|
|
86
86
|
declare function convertToCapnpOther(serializedType: {
|
|
87
87
|
kind: ReflectionKind;
|
|
88
88
|
typeName?: string;
|
|
89
89
|
}, result: SerializedTypeOther): SerializedTypeOther;
|
|
90
|
-
declare function convertToCapnpSimple(serializedType: SimpleSerializedType
|
|
91
|
-
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral): SerializedTypeLiteral
|
|
92
|
-
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral
|
|
93
|
-
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature): SerializedTypeMethodSignature
|
|
94
|
-
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature
|
|
95
|
-
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature): SerializedTypePropertySignature
|
|
90
|
+
declare function convertToCapnpSimple(serializedType: SimpleSerializedType, result: SimpleSerializedType$1): SimpleSerializedType$1;
|
|
91
|
+
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral$1): SerializedTypeLiteral;
|
|
92
|
+
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral, result: SerializedTypeLiteral$1): SerializedTypeLiteral$1;
|
|
93
|
+
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature$1): SerializedTypeMethodSignature;
|
|
94
|
+
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature, result: SerializedTypeMethodSignature$1): SerializedTypeMethodSignature$1;
|
|
95
|
+
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature$1): SerializedTypePropertySignature;
|
|
96
96
|
declare function convertToCapnpDefault(defaultValue: any, result: DefaultValueReflection): void;
|
|
97
97
|
declare function convertFromCapnpDefault(serializedType: DefaultValueReflection): any;
|
|
98
|
-
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature
|
|
99
|
-
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember
|
|
100
|
-
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember): SerializedTypeTupleMember
|
|
101
|
-
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple
|
|
102
|
-
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple): SerializedTypeTuple
|
|
103
|
-
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty
|
|
104
|
-
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty): SerializedTypeProperty
|
|
105
|
-
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum
|
|
106
|
-
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum): SerializedTypeEnum
|
|
107
|
-
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection
|
|
108
|
-
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection): SerializedTypeIntersection
|
|
109
|
-
declare function convertToCapnpArray(serializedType: SerializedTypeArray
|
|
110
|
-
declare function convertFromCapnpArray(serializedType: SerializedTypeArray): SerializedTypeArray
|
|
98
|
+
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature, result: SerializedTypePropertySignature$1): SerializedTypePropertySignature$1;
|
|
99
|
+
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember, result: SerializedTypeTupleMember$1): SerializedTypeTupleMember$1;
|
|
100
|
+
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember$1): SerializedTypeTupleMember;
|
|
101
|
+
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple, result: SerializedTypeTuple$1): SerializedTypeTuple$1;
|
|
102
|
+
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple$1): SerializedTypeTuple;
|
|
103
|
+
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty, result: SerializedTypeProperty$1): SerializedTypeProperty$1;
|
|
104
|
+
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty$1): SerializedTypeProperty;
|
|
105
|
+
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum, result: SerializedTypeEnum$1): SerializedTypeEnum$1;
|
|
106
|
+
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum$1): SerializedTypeEnum;
|
|
107
|
+
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection, result: SerializedTypeIntersection$1): SerializedTypeIntersection$1;
|
|
108
|
+
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection$1): SerializedTypeIntersection;
|
|
109
|
+
declare function convertToCapnpArray(serializedType: SerializedTypeArray, result: SerializedTypeArray$1): SerializedTypeArray$1;
|
|
110
|
+
declare function convertFromCapnpArray(serializedType: SerializedTypeArray$1): SerializedTypeArray;
|
|
111
111
|
/**
|
|
112
112
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
113
113
|
*
|
|
114
114
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
115
115
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
116
116
|
*/
|
|
117
|
-
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion
|
|
118
|
-
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion): SerializedTypeUnion
|
|
117
|
+
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion, result: SerializedTypeUnion$1): SerializedTypeUnion$1;
|
|
118
|
+
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion$1): SerializedTypeUnion;
|
|
119
119
|
/**
|
|
120
120
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
121
121
|
*
|
|
122
122
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert.
|
|
123
123
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
124
124
|
*/
|
|
125
|
-
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer
|
|
126
|
-
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer): SerializedTypeInfer
|
|
125
|
+
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer, result: SerializedTypeInfer$1): SerializedTypeInfer$1;
|
|
126
|
+
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer$1): SerializedTypeInfer;
|
|
127
127
|
/**
|
|
128
128
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
129
129
|
*
|
|
130
130
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
131
131
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
132
132
|
*/
|
|
133
|
-
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction
|
|
133
|
+
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction, result: SerializedTypeFunction$1): SerializedTypeFunction$1;
|
|
134
134
|
/**
|
|
135
135
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
136
136
|
*
|
|
137
137
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
138
138
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
139
139
|
*/
|
|
140
|
-
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod
|
|
141
|
-
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction): SerializedTypeFunction
|
|
140
|
+
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod, result: SerializedTypeMethod$1): SerializedTypeMethod$1;
|
|
141
|
+
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction$1): SerializedTypeFunction;
|
|
142
142
|
/**
|
|
143
143
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
144
144
|
*
|
|
145
145
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
146
146
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
147
147
|
*/
|
|
148
|
-
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType
|
|
149
|
-
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType): SerializedTypeClassType
|
|
148
|
+
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType, result: SerializedTypeClassType$1): SerializedTypeClassType$1;
|
|
149
|
+
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType$1): SerializedTypeClassType;
|
|
150
150
|
/**
|
|
151
151
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
152
152
|
*
|
|
153
153
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
154
154
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
155
155
|
*/
|
|
156
|
-
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral
|
|
157
|
-
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral): SerializedTypeObjectLiteral
|
|
156
|
+
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral, result: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral$1;
|
|
157
|
+
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral;
|
|
158
158
|
/**
|
|
159
159
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
160
160
|
*
|
|
161
161
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
162
162
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
163
163
|
*/
|
|
164
|
-
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter
|
|
165
|
-
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter): SerializedTypeParameter
|
|
164
|
+
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter, result: SerializedTypeParameter$1): SerializedTypeParameter$1;
|
|
165
|
+
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter$1): SerializedTypeParameter;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { 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 };
|
|
168
168
|
//# sourceMappingURL=capnp.d.cts.map
|
package/dist/capnp.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as SimpleSerializedType, _ as SerializedTypePropertySignature, a as SerializedTypeClassType, b as SerializedTypeUnion, c as SerializedTypeInfer, d as SerializedTypeMethod, f as SerializedTypeMethodSignature, g as SerializedTypeProperty, h as SerializedTypeParameter, i as SerializedTypeArray, l as SerializedTypeIntersection, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum, p as SerializedTypeObjectLiteral, r as SerializedType, s as SerializedTypeFunction, t as DefaultValueReflection, u as SerializedTypeLiteral, v as SerializedTypeTuple, w as TagsReflection, x as SerializedType_Type, y as SerializedTypeTupleMember } from "./reflection-
|
|
2
|
-
import {
|
|
1
|
+
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-DaLz4ZT5.mjs";
|
|
2
|
+
import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
import { List } from "@stryke/capnp";
|
|
4
4
|
|
|
5
5
|
//#region src/capnp.d.ts
|
|
@@ -9,21 +9,21 @@ import { List } from "@stryke/capnp";
|
|
|
9
9
|
* @param serializedTypes - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
10
10
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
11
11
|
*/
|
|
12
|
-
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType>): List<SerializedType>;
|
|
12
|
+
declare function convertToCapnp(serializedTypes: SerializedTypes, result: List<SerializedType$1>): List<SerializedType$1>;
|
|
13
13
|
/**
|
|
14
14
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
15
15
|
*
|
|
16
16
|
* @param serializedTypes - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema
|
|
17
17
|
* @returns The [Deepkit](https://deepkit.io/) {@link SerializedTypes | serialized types} converted from the Cap'n Proto serialized type
|
|
18
18
|
*/
|
|
19
|
-
declare function convertFromCapnp(serializedTypes: List<SerializedType>): SerializedTypes;
|
|
19
|
+
declare function convertFromCapnp(serializedTypes: List<SerializedType$1>): SerializedTypes;
|
|
20
20
|
/**
|
|
21
21
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
22
22
|
*
|
|
23
23
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
24
24
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
25
25
|
*/
|
|
26
|
-
declare function convertToCapnpTagsReflection(result: TagsReflection, serializedType?: TagsReflection
|
|
26
|
+
declare function convertToCapnpTagsReflection(result: TagsReflection$1, serializedType?: TagsReflection): TagsReflection$1;
|
|
27
27
|
interface WithTagsReflection {
|
|
28
28
|
_hasTags: () => boolean;
|
|
29
29
|
tags?: {
|
|
@@ -79,90 +79,90 @@ declare function convertFromCapnpIndexAccessOrigin(serializedType: WithIndexAcce
|
|
|
79
79
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
80
80
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
81
81
|
*/
|
|
82
|
-
declare function convertToCapnpBase(serializedType: SerializedType
|
|
83
|
-
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType
|
|
84
|
-
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType
|
|
85
|
-
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType): SimpleSerializedType
|
|
82
|
+
declare function convertToCapnpBase(serializedType: SerializedType, result: SerializedType_Type): SerializedType_Type;
|
|
83
|
+
declare function convertFromCapnpBase(serializedType: SerializedType_Type): SerializedType;
|
|
84
|
+
declare function convertFromCapnpOther(serializedType: SerializedTypeOther): SerializedType;
|
|
85
|
+
declare function convertFromCapnpSimple(serializedType: SimpleSerializedType$1): SimpleSerializedType;
|
|
86
86
|
declare function convertToCapnpOther(serializedType: {
|
|
87
87
|
kind: ReflectionKind;
|
|
88
88
|
typeName?: string;
|
|
89
89
|
}, result: SerializedTypeOther): SerializedTypeOther;
|
|
90
|
-
declare function convertToCapnpSimple(serializedType: SimpleSerializedType
|
|
91
|
-
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral): SerializedTypeLiteral
|
|
92
|
-
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral
|
|
93
|
-
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature): SerializedTypeMethodSignature
|
|
94
|
-
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature
|
|
95
|
-
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature): SerializedTypePropertySignature
|
|
90
|
+
declare function convertToCapnpSimple(serializedType: SimpleSerializedType, result: SimpleSerializedType$1): SimpleSerializedType$1;
|
|
91
|
+
declare function convertFromCapnpLiteral(serializedType: SerializedTypeLiteral$1): SerializedTypeLiteral;
|
|
92
|
+
declare function convertToCapnpLiteral(serializedType: SerializedTypeLiteral, result: SerializedTypeLiteral$1): SerializedTypeLiteral$1;
|
|
93
|
+
declare function convertFromCapnpMethodSignature(serializedType: SerializedTypeMethodSignature$1): SerializedTypeMethodSignature;
|
|
94
|
+
declare function convertToCapnpMethodSignature(serializedType: SerializedTypeMethodSignature, result: SerializedTypeMethodSignature$1): SerializedTypeMethodSignature$1;
|
|
95
|
+
declare function convertFromCapnpPropertySignature(serializedType: SerializedTypePropertySignature$1): SerializedTypePropertySignature;
|
|
96
96
|
declare function convertToCapnpDefault(defaultValue: any, result: DefaultValueReflection): void;
|
|
97
97
|
declare function convertFromCapnpDefault(serializedType: DefaultValueReflection): any;
|
|
98
|
-
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature
|
|
99
|
-
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember
|
|
100
|
-
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember): SerializedTypeTupleMember
|
|
101
|
-
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple
|
|
102
|
-
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple): SerializedTypeTuple
|
|
103
|
-
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty
|
|
104
|
-
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty): SerializedTypeProperty
|
|
105
|
-
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum
|
|
106
|
-
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum): SerializedTypeEnum
|
|
107
|
-
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection
|
|
108
|
-
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection): SerializedTypeIntersection
|
|
109
|
-
declare function convertToCapnpArray(serializedType: SerializedTypeArray
|
|
110
|
-
declare function convertFromCapnpArray(serializedType: SerializedTypeArray): SerializedTypeArray
|
|
98
|
+
declare function convertToCapnpPropertySignature(serializedType: SerializedTypePropertySignature, result: SerializedTypePropertySignature$1): SerializedTypePropertySignature$1;
|
|
99
|
+
declare function convertToCapnpTupleMember(serializedType: SerializedTypeTupleMember, result: SerializedTypeTupleMember$1): SerializedTypeTupleMember$1;
|
|
100
|
+
declare function convertFromCapnpTupleMember(serializedType: SerializedTypeTupleMember$1): SerializedTypeTupleMember;
|
|
101
|
+
declare function convertToCapnpTuple(serializedType: SerializedTypeTuple, result: SerializedTypeTuple$1): SerializedTypeTuple$1;
|
|
102
|
+
declare function convertFromCapnpTuple(serializedType: SerializedTypeTuple$1): SerializedTypeTuple;
|
|
103
|
+
declare function convertToCapnpProperty(serializedType: SerializedTypeProperty, result: SerializedTypeProperty$1): SerializedTypeProperty$1;
|
|
104
|
+
declare function convertFromCapnpProperty(serializedType: SerializedTypeProperty$1): SerializedTypeProperty;
|
|
105
|
+
declare function convertToCapnpEnum(serializedType: SerializedTypeEnum, result: SerializedTypeEnum$1): SerializedTypeEnum$1;
|
|
106
|
+
declare function convertFromCapnpEnum(serializedType: SerializedTypeEnum$1): SerializedTypeEnum;
|
|
107
|
+
declare function convertToCapnpIntersection(serializedType: SerializedTypeIntersection, result: SerializedTypeIntersection$1): SerializedTypeIntersection$1;
|
|
108
|
+
declare function convertFromCapnpIntersection(serializedType: SerializedTypeIntersection$1): SerializedTypeIntersection;
|
|
109
|
+
declare function convertToCapnpArray(serializedType: SerializedTypeArray, result: SerializedTypeArray$1): SerializedTypeArray$1;
|
|
110
|
+
declare function convertFromCapnpArray(serializedType: SerializedTypeArray$1): SerializedTypeArray;
|
|
111
111
|
/**
|
|
112
112
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
113
113
|
*
|
|
114
114
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
115
115
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
116
116
|
*/
|
|
117
|
-
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion
|
|
118
|
-
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion): SerializedTypeUnion
|
|
117
|
+
declare function convertToCapnpUnion(serializedType: SerializedTypeUnion, result: SerializedTypeUnion$1): SerializedTypeUnion$1;
|
|
118
|
+
declare function convertFromCapnpUnion(serializedType: SerializedTypeUnion$1): SerializedTypeUnion;
|
|
119
119
|
/**
|
|
120
120
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
121
121
|
*
|
|
122
122
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert.
|
|
123
123
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
124
124
|
*/
|
|
125
|
-
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer
|
|
126
|
-
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer): SerializedTypeInfer
|
|
125
|
+
declare function convertToCapnpInfer(serializedType: SerializedTypeInfer, result: SerializedTypeInfer$1): SerializedTypeInfer$1;
|
|
126
|
+
declare function convertFromCapnpInfer(serializedType: SerializedTypeInfer$1): SerializedTypeInfer;
|
|
127
127
|
/**
|
|
128
128
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
129
129
|
*
|
|
130
130
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
131
131
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
132
132
|
*/
|
|
133
|
-
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction
|
|
133
|
+
declare function convertToCapnpFunction(serializedType: SerializedTypeFunction, result: SerializedTypeFunction$1): SerializedTypeFunction$1;
|
|
134
134
|
/**
|
|
135
135
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
136
136
|
*
|
|
137
137
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
138
138
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
139
139
|
*/
|
|
140
|
-
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod
|
|
141
|
-
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction): SerializedTypeFunction
|
|
140
|
+
declare function convertToCapnpMethod(serializedType: SerializedTypeMethod, result: SerializedTypeMethod$1): SerializedTypeMethod$1;
|
|
141
|
+
declare function convertFromCapnpFunction(serializedType: SerializedTypeFunction$1): SerializedTypeFunction;
|
|
142
142
|
/**
|
|
143
143
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
144
144
|
*
|
|
145
145
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
146
146
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
147
147
|
*/
|
|
148
|
-
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType
|
|
149
|
-
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType): SerializedTypeClassType
|
|
148
|
+
declare function convertToCapnpClassType(serializedType: SerializedTypeClassType, result: SerializedTypeClassType$1): SerializedTypeClassType$1;
|
|
149
|
+
declare function convertFromCapnpClassType(serializedType: SerializedTypeClassType$1): SerializedTypeClassType;
|
|
150
150
|
/**
|
|
151
151
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
152
152
|
*
|
|
153
153
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
154
154
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
155
155
|
*/
|
|
156
|
-
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral
|
|
157
|
-
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral): SerializedTypeObjectLiteral
|
|
156
|
+
declare function convertToCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral, result: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral$1;
|
|
157
|
+
declare function convertFromCapnpObjectLiteral(serializedType: SerializedTypeObjectLiteral$1): SerializedTypeObjectLiteral;
|
|
158
158
|
/**
|
|
159
159
|
* Converts a Deepkit serialized type to a Cap'n Proto serialized type.
|
|
160
160
|
*
|
|
161
161
|
* @param serializedType - The [Deepkit](https://deepkit.io/) {@link SerializedType | serialized type} to convert
|
|
162
162
|
* @param result - The {@link capnp.List | list} object defined in a [Cap'n Proto](https://capnproto.org/) schema to write the converted type to
|
|
163
163
|
*/
|
|
164
|
-
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter
|
|
165
|
-
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter): SerializedTypeParameter
|
|
164
|
+
declare function convertToCapnpParameter(serializedType: SerializedTypeParameter, result: SerializedTypeParameter$1): SerializedTypeParameter$1;
|
|
165
|
+
declare function convertFromCapnpParameter(serializedType: SerializedTypeParameter$1): SerializedTypeParameter;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { 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 };
|
|
168
168
|
//# sourceMappingURL=capnp.d.mts.map
|