@powerlines/deepkit 0.7.4 → 0.7.6

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.
Files changed (86) hide show
  1. package/dist/{capnp-BLx1WTBU.cjs → capnp-BLCHrDSY.cjs} +42 -42
  2. package/dist/{capnp-BiGNkOmV.mjs → capnp-BqAglxrS.mjs} +265 -265
  3. package/dist/capnp.cjs +1 -1
  4. package/dist/capnp.d.cts +42 -44
  5. package/dist/capnp.d.mts +42 -44
  6. package/dist/capnp.mjs +1 -1
  7. package/dist/{chunk-C0xms8kb.cjs → chunk-BmvPcxpV.cjs} +7 -0
  8. package/dist/chunk-CgI6uo-e.mjs +32 -0
  9. package/dist/{vendor/type-compiler/compiler-D1z5h1MK.d.cts → compiler-B-zwyGQf.d.cts} +3 -201
  10. package/dist/{vendor/type-compiler/compiler-Bg8jX6qU.mjs → compiler-CoBHJbw6.mjs} +4 -191
  11. package/dist/{vendor/type-compiler/compiler-Nkxc4PLJ.d.mts → compiler-DLeSXEon.d.mts} +3 -201
  12. package/dist/{vendor/type-compiler/compiler-BUrWMhGi.cjs → compiler-TYAnj4GK.cjs} +207 -394
  13. package/dist/{vendor/type-compiler/config-B_cKkYZm.d.cts → config-DCmu3CV2.d.cts} +1 -1
  14. package/dist/config-DDRKbv_W.d.mts +1 -0
  15. package/dist/config-GPeRZeGl.d.cts +1 -0
  16. package/dist/{vendor/type-compiler/config-D9DM7Du_.d.mts → config-SjpQNPJf.d.mts} +1 -1
  17. package/dist/{vendor/type-compiler/config-BEX924PC.cjs → config-V3ttv0UZ.cjs} +20 -59
  18. package/dist/{vendor/type-compiler/config-y0HNkbCH.mjs → config-ldWMxkkM.mjs} +3 -32
  19. package/dist/esbuild-plugin.cjs +1 -1
  20. package/dist/esbuild-plugin.d.cts +18 -4
  21. package/dist/esbuild-plugin.d.mts +18 -4
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.cts +4 -4
  24. package/dist/index.d.mts +4 -4
  25. package/dist/index.mjs +1 -1
  26. package/dist/reflect-type.cjs +3 -3
  27. package/dist/reflect-type.d.cts +1 -1
  28. package/dist/reflect-type.d.mts +1 -1
  29. package/dist/reflect-type.mjs +1 -1
  30. package/dist/{reflection-C4IlLDrv.d.cts → reflection-DGOuMF8F.d.cts} +2 -2
  31. package/dist/{reflection-BB3pXP5l.d.mts → reflection-lA4jBKKP.d.mts} +2 -2
  32. package/dist/resolve-reflections.cjs +1 -1
  33. package/dist/rolldown-plugin.cjs +1 -1
  34. package/dist/{vendor/string-BuMgdahD.mjs → string-CjkshhTG.mjs} +2 -28
  35. package/dist/{vendor/string-BoXo0wS7.cjs → string-CpVz34Gv.cjs} +6 -39
  36. package/dist/transformer.cjs +6 -7
  37. package/dist/transformer.d.cts +1 -1
  38. package/dist/transformer.d.mts +1 -1
  39. package/dist/transformer.mjs +2 -3
  40. package/dist/transpile.cjs +6 -2
  41. package/dist/transpile.d.cts +1 -1
  42. package/dist/transpile.d.mts +1 -1
  43. package/dist/transpile.mjs +5 -1
  44. package/dist/type-8AL5U7vn.d.cts +2969 -0
  45. package/dist/{vendor/type-Dgeqs-rL.mjs → type-BWm74eaQ.mjs} +1 -1
  46. package/dist/{vendor/type-2yMJb9Mw.d.cts → type-C4eOl66J.d.mts} +1 -1
  47. package/dist/type-C7UXbXfx.cjs +10688 -0
  48. package/dist/{vendor/type-DEpHWwMt.d.mts → type-DR66Hepn.d.cts} +1 -1
  49. package/dist/type-SyDc32SL.d.mts +2969 -0
  50. package/dist/type-ma8o4dJG.mjs +9110 -0
  51. package/dist/{vendor/types-Ur6a2Srw.d.mts → types-Bb6lL3KL.d.cts} +1 -1
  52. package/dist/{vendor/types-exLGvFgG.d.cts → types-DYGcIrk3.d.mts} +1 -1
  53. package/dist/types.d.cts +4 -7
  54. package/dist/types.d.mts +4 -7
  55. package/dist/utilities.cjs +43 -43
  56. package/dist/utilities.d.cts +1 -1
  57. package/dist/utilities.d.mts +1 -1
  58. package/dist/utilities.mjs +1 -1
  59. package/dist/vendor/core.cjs +1 -1
  60. package/dist/vendor/core.d.cts +1 -1
  61. package/dist/vendor/core.d.mts +1 -1
  62. package/dist/vendor/core.mjs +1 -1
  63. package/dist/vendor/type-compiler/compiler.cjs +1 -1
  64. package/dist/vendor/type-compiler/compiler.d.cts +1 -1
  65. package/dist/vendor/type-compiler/compiler.d.mts +1 -1
  66. package/dist/vendor/type-compiler/compiler.mjs +1 -1
  67. package/dist/vendor/type-compiler/config.cjs +1 -1
  68. package/dist/vendor/type-compiler/config.d.cts +1 -1
  69. package/dist/vendor/type-compiler/config.d.mts +1 -1
  70. package/dist/vendor/type-compiler/config.mjs +1 -1
  71. package/dist/vendor/type-compiler/index.cjs +11 -3
  72. package/dist/vendor/type-compiler/index.d.cts +3 -2
  73. package/dist/vendor/type-compiler/index.d.mts +3 -2
  74. package/dist/vendor/type-compiler/index.mjs +3 -2
  75. package/dist/vendor/type-spec.cjs +1 -1
  76. package/dist/vendor/type-spec.d.cts +1 -1
  77. package/dist/vendor/type-spec.d.mts +1 -1
  78. package/dist/vendor/type-spec.mjs +1 -1
  79. package/dist/vendor/type.cjs +268 -9374
  80. package/dist/vendor/type.d.cts +3 -2969
  81. package/dist/vendor/type.d.mts +3 -2969
  82. package/dist/vendor/type.mjs +3 -9109
  83. package/package.json +13 -26
  84. package/schemas/reflection.d.cts +1 -6
  85. package/schemas/reflection.d.mts +1 -6
  86. /package/dist/{vendor/type-BMLjRtLY.cjs → type-DhqntM0q.cjs} +0 -0
@@ -1,205 +1,7 @@
1
- import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-B_cKkYZm.cjs";
1
+ import { n as ReflectionOp } from "./type-DR66Hepn.cjs";
2
+ import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-DCmu3CV2.cjs";
2
3
  import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
3
4
 
4
- //#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/cjs/src/type.d.ts
5
- /**
6
- * The instruction set.
7
- * Should not be greater than 93 members, because we encode it via charCode starting at 33. +93 means we end up with charCode=126
8
- * (which is '~' and the last char that can be represented without \x. The next 127 is '\x7F').
9
- */
10
- declare enum ReflectionOp {
11
- never = 0,
12
- any = 1,
13
- unknown = 2,
14
- void = 3,
15
- object = 4,
16
- string = 5,
17
- number = 6,
18
- numberBrand = 7,
19
- boolean = 8,
20
- bigint = 9,
21
- symbol = 10,
22
- null = 11,
23
- undefined = 12,
24
- /**
25
- * The literal type of string, number, or boolean.
26
- *
27
- * This OP has 1 parameter. The next byte is the absolute address of the literal on the stack, which is the actual literal value.
28
- *
29
- * Pushes a function type.
30
- */
31
- literal = 13,
32
- /**
33
- * This OP pops all types on the current stack frame.
34
- *
35
- * This OP has 1 parameter. The next byte is the absolute address of a string|number|symbol entry on the stack.
36
- *
37
- * Pushes a function type.
38
- */
39
- function = 14,
40
- /**
41
- * This OP pops all types on the current stack frame.
42
- *
43
- * Pushes a method type.
44
- */
45
- method = 15,
46
- methodSignature = 16,
47
- //has 1 parameter, reference to stack for its property name
48
- parameter = 17,
49
- /**
50
- * This OP pops the latest type entry on the stack.
51
- *
52
- * Pushes a property type.
53
- */
54
- property = 18,
55
- propertySignature = 19,
56
- //has 1 parameter, reference to stack for its property name
57
- /**
58
- * This OP pops all types on the current stack frame. Those types should be method|property.
59
- *
60
- * Pushes a TypeClass onto the stack.
61
- */
62
- class = 20,
63
- /**
64
- * If a class extends another class with generics, this OP represents the generic type arguments of the super class.
65
- *
66
- * e.g. `class A extends B<string, boolean>`, string and boolean are on the stack and classExtends pops() them, and then assigns to A.extendsTypeArguments = [string, boolean].
67
- *
68
- * This is only emitted when the class that is currently being described actually extends another class and uses generics.
69
- *
70
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
71
- * Expects a TypeClass on the stack.
72
- */
73
- classExtends = 21,
74
- /**
75
- * This OP has 1 parameter, the stack entry to the actual class symbol.
76
- */
77
- classReference = 22,
78
- /**
79
- * Marks the last entry in the stack as optional. Used for method|property. Equal to the QuestionMark operator in a property assignment.
80
- */
81
- optional = 23,
82
- readonly = 24,
83
- public = 25,
84
- private = 26,
85
- protected = 27,
86
- abstract = 28,
87
- defaultValue = 29,
88
- description = 30,
89
- rest = 31,
90
- regexp = 32,
91
- enum = 33,
92
- enumMember = 34,
93
- //has one argument, the name.
94
- set = 35,
95
- map = 36,
96
- /**
97
- * Pops the latest stack entry and uses it as T for an array type.
98
- *
99
- * Pushes an array type.
100
- */
101
- array = 37,
102
- tuple = 38,
103
- tupleMember = 39,
104
- namedTupleMember = 40,
105
- //has one argument, the name.
106
- union = 41,
107
- //pops frame. requires frame start when stack can be dirty.
108
- intersection = 42,
109
- indexSignature = 43,
110
- objectLiteral = 44,
111
- mappedType = 45,
112
- //2 parameters: functionPointer and modifier.
113
- in = 46,
114
- frame = 47,
115
- //creates a new stack frame
116
- moveFrame = 48,
117
- //pop() as T, pops the current stack frame, push(T)
118
- return = 49,
119
- templateLiteral = 50,
120
- date = 51,
121
- int8Array = 52,
122
- uint8ClampedArray = 53,
123
- uint8Array = 54,
124
- int16Array = 55,
125
- uint16Array = 56,
126
- int32Array = 57,
127
- uint32Array = 58,
128
- float32Array = 59,
129
- float64Array = 60,
130
- bigInt64Array = 61,
131
- arrayBuffer = 62,
132
- promise = 63,
133
- arg = 64,
134
- //@deprecated. parameter is a number referencing an entry in the stack, relative to the beginning of the current frame, *-1. pushes that entry onto the stack. this is related to the calling convention.
135
- typeParameter = 65,
136
- //generic type parameter, e.g. T in a generic. has 1 parameter: reference to the name.
137
- typeParameterDefault = 66,
138
- //generic type parameter with a default value, e.g. T in a generic. has 1 parameter: reference to the name. pop() for the default value
139
- var = 67,
140
- //reserve a new variable in the stack
141
- loads = 68,
142
- //pushes to the stack a referenced value in the stack. has 2 parameters: <frame> <index>, frame is a negative offset to the frame, and index the index of the stack entry withing the referenced frame
143
- indexAccess = 69,
144
- //T['string'], 2 items on the stack
145
- keyof = 70,
146
- //keyof operator
147
- infer = 71,
148
- //2 params, like `loads`
149
- typeof = 72,
150
- //1 parameter that points to a function returning the runtime value from which we need to extract the type
151
- condition = 73,
152
- jumpCondition = 74,
153
- //@deprecated. used when INFER is used in `extends` conditional branch. 2 args: left program, right program
154
- jump = 75,
155
- //jump to an address
156
- call = 76,
157
- //has one parameter, the next program address. creates a new stack frame with current program address as first stack entry, and jumps back to that + 1.
158
- inline = 77,
159
- inlineCall = 78,
160
- distribute = 79,
161
- //has one parameter, the co-routine program index.
162
- extends = 80,
163
- //X extends Y in a conditional type, XY popped from the stack, pushes boolean on the stack
164
- widen = 81,
165
- //widens the type on the stack, .e.g 'asd' => string, 34 => number, etc. this is necessary for infer runtime data, and widen if necessary (object member or non-contained literal)
166
- static = 82,
167
- mappedType2 = 83,
168
- //same as mappedType2 but the given functionPointer returns a tuple [type, name]
169
- functionReference = 84,
170
- //Same as classReference but for functions
171
- callSignature = 85,
172
- //Same as function but for call signatures (in object literals)
173
- /**
174
- * Assign for Enum, Interface, Class, and TypeAlias declaration at the very end
175
- * of the program the typeName. This is so that we have type names available even
176
- * if the JS code is minified.
177
- *
178
- * his operator also assigns originTypes to the type, as it acts as the finalization
179
- * step of a type.
180
- */
181
- typeName = 86,
182
- //has one parameter, the index of the stack entry that contains the type name. Uses current head of the stack as type and assigns typeName to it.
183
- /**
184
- * If a class implement an interface or type,
185
- *
186
- * e.g. `class A implements B`, then B is on the stack and implements pops() it, and then assigns to A.implements = [B].
187
- *
188
- * This is only emitted when the class that is currently being described actually implements something.
189
- *
190
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
191
- * Expects a TypeClass on the stack.
192
- */
193
- implements = 87,
194
- //pops one type from the stack and assigns it to the latest class on the stack as `implements` type.
195
- nominal = 88,
196
- //marks the last type on the stack as nominal. (used at the end of class/interface/type alias programs).
197
- /**
198
- * Custom Storm Software operators
199
- */
200
- tags = 89
201
- }
202
- //#endregion
203
5
  //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
204
6
  /**
205
7
  * Contains @internal properties that are not yet in the public API of TS.
@@ -575,4 +377,4 @@ declare const transformer: CustomTransformerFactory;
575
377
  declare const declarationTransformer: CustomTransformerFactory;
576
378
  //#endregion
577
379
  export { debugPackStruct as a, packSize as c, TagsReflectionStruct as i, packSizeByte as l, DeclarationTransformer as n, declarationTransformer as o, ReflectionTransformer as r, encodeOps as s, Cache as t, transformer as u };
578
- //# sourceMappingURL=compiler-D1z5h1MK.d.cts.map
380
+ //# sourceMappingURL=compiler-B-zwyGQf.d.cts.map
@@ -1,195 +1,8 @@
1
- import { c as Resolver, d as __commonJSMin, f as __require, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-y0HNkbCH.mjs";
1
+ import { n as __require, t as __commonJSMin } from "./chunk-CgI6uo-e.mjs";
2
+ import { n as TypeNumberBrand, t as ReflectionOp } from "./type-BWm74eaQ.mjs";
3
+ import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-ldWMxkkM.mjs";
2
4
  import ts, { isBigIntLiteral } from "typescript";
3
5
 
4
- //#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
5
- /**
6
- * note: Checks are based on range checks (>, <, etc), so when adding
7
- * new types a check is required for all code using `TypeNumberBrand`.
8
- */
9
- var TypeNumberBrand;
10
- (function(TypeNumberBrand) {
11
- TypeNumberBrand[TypeNumberBrand["integer"] = 0] = "integer";
12
- TypeNumberBrand[TypeNumberBrand["int8"] = 1] = "int8";
13
- TypeNumberBrand[TypeNumberBrand["int16"] = 2] = "int16";
14
- TypeNumberBrand[TypeNumberBrand["int32"] = 3] = "int32";
15
- TypeNumberBrand[TypeNumberBrand["uint8"] = 4] = "uint8";
16
- TypeNumberBrand[TypeNumberBrand["uint16"] = 5] = "uint16";
17
- TypeNumberBrand[TypeNumberBrand["uint32"] = 6] = "uint32";
18
- TypeNumberBrand[TypeNumberBrand["float"] = 7] = "float";
19
- TypeNumberBrand[TypeNumberBrand["float32"] = 8] = "float32";
20
- TypeNumberBrand[TypeNumberBrand["float64"] = 9] = "float64";
21
- })(TypeNumberBrand || (TypeNumberBrand = {}));
22
- /**
23
- * The instruction set.
24
- * Should not be greater than 93 members, because we encode it via charCode starting at 33. +93 means we end up with charCode=126
25
- * (which is '~' and the last char that can be represented without \x. The next 127 is '\x7F').
26
- */
27
- var ReflectionOp;
28
- (function(ReflectionOp) {
29
- ReflectionOp[ReflectionOp["never"] = 0] = "never";
30
- ReflectionOp[ReflectionOp["any"] = 1] = "any";
31
- ReflectionOp[ReflectionOp["unknown"] = 2] = "unknown";
32
- ReflectionOp[ReflectionOp["void"] = 3] = "void";
33
- ReflectionOp[ReflectionOp["object"] = 4] = "object";
34
- ReflectionOp[ReflectionOp["string"] = 5] = "string";
35
- ReflectionOp[ReflectionOp["number"] = 6] = "number";
36
- ReflectionOp[ReflectionOp["numberBrand"] = 7] = "numberBrand";
37
- ReflectionOp[ReflectionOp["boolean"] = 8] = "boolean";
38
- ReflectionOp[ReflectionOp["bigint"] = 9] = "bigint";
39
- ReflectionOp[ReflectionOp["symbol"] = 10] = "symbol";
40
- ReflectionOp[ReflectionOp["null"] = 11] = "null";
41
- ReflectionOp[ReflectionOp["undefined"] = 12] = "undefined";
42
- /**
43
- * The literal type of string, number, or boolean.
44
- *
45
- * This OP has 1 parameter. The next byte is the absolute address of the literal on the stack, which is the actual literal value.
46
- *
47
- * Pushes a function type.
48
- */
49
- ReflectionOp[ReflectionOp["literal"] = 13] = "literal";
50
- /**
51
- * This OP pops all types on the current stack frame.
52
- *
53
- * This OP has 1 parameter. The next byte is the absolute address of a string|number|symbol entry on the stack.
54
- *
55
- * Pushes a function type.
56
- */
57
- ReflectionOp[ReflectionOp["function"] = 14] = "function";
58
- /**
59
- * This OP pops all types on the current stack frame.
60
- *
61
- * Pushes a method type.
62
- */
63
- ReflectionOp[ReflectionOp["method"] = 15] = "method";
64
- ReflectionOp[ReflectionOp["methodSignature"] = 16] = "methodSignature";
65
- ReflectionOp[ReflectionOp["parameter"] = 17] = "parameter";
66
- /**
67
- * This OP pops the latest type entry on the stack.
68
- *
69
- * Pushes a property type.
70
- */
71
- ReflectionOp[ReflectionOp["property"] = 18] = "property";
72
- ReflectionOp[ReflectionOp["propertySignature"] = 19] = "propertySignature";
73
- /**
74
- * This OP pops all types on the current stack frame. Those types should be method|property.
75
- *
76
- * Pushes a TypeClass onto the stack.
77
- */
78
- ReflectionOp[ReflectionOp["class"] = 20] = "class";
79
- /**
80
- * If a class extends another class with generics, this OP represents the generic type arguments of the super class.
81
- *
82
- * e.g. `class A extends B<string, boolean>`, string and boolean are on the stack and classExtends pops() them, and then assigns to A.extendsTypeArguments = [string, boolean].
83
- *
84
- * This is only emitted when the class that is currently being described actually extends another class and uses generics.
85
- *
86
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
87
- * Expects a TypeClass on the stack.
88
- */
89
- ReflectionOp[ReflectionOp["classExtends"] = 21] = "classExtends";
90
- /**
91
- * This OP has 1 parameter, the stack entry to the actual class symbol.
92
- */
93
- ReflectionOp[ReflectionOp["classReference"] = 22] = "classReference";
94
- /**
95
- * Marks the last entry in the stack as optional. Used for method|property. Equal to the QuestionMark operator in a property assignment.
96
- */
97
- ReflectionOp[ReflectionOp["optional"] = 23] = "optional";
98
- ReflectionOp[ReflectionOp["readonly"] = 24] = "readonly";
99
- ReflectionOp[ReflectionOp["public"] = 25] = "public";
100
- ReflectionOp[ReflectionOp["private"] = 26] = "private";
101
- ReflectionOp[ReflectionOp["protected"] = 27] = "protected";
102
- ReflectionOp[ReflectionOp["abstract"] = 28] = "abstract";
103
- ReflectionOp[ReflectionOp["defaultValue"] = 29] = "defaultValue";
104
- ReflectionOp[ReflectionOp["description"] = 30] = "description";
105
- ReflectionOp[ReflectionOp["rest"] = 31] = "rest";
106
- ReflectionOp[ReflectionOp["regexp"] = 32] = "regexp";
107
- ReflectionOp[ReflectionOp["enum"] = 33] = "enum";
108
- ReflectionOp[ReflectionOp["enumMember"] = 34] = "enumMember";
109
- ReflectionOp[ReflectionOp["set"] = 35] = "set";
110
- ReflectionOp[ReflectionOp["map"] = 36] = "map";
111
- /**
112
- * Pops the latest stack entry and uses it as T for an array type.
113
- *
114
- * Pushes an array type.
115
- */
116
- ReflectionOp[ReflectionOp["array"] = 37] = "array";
117
- ReflectionOp[ReflectionOp["tuple"] = 38] = "tuple";
118
- ReflectionOp[ReflectionOp["tupleMember"] = 39] = "tupleMember";
119
- ReflectionOp[ReflectionOp["namedTupleMember"] = 40] = "namedTupleMember";
120
- ReflectionOp[ReflectionOp["union"] = 41] = "union";
121
- ReflectionOp[ReflectionOp["intersection"] = 42] = "intersection";
122
- ReflectionOp[ReflectionOp["indexSignature"] = 43] = "indexSignature";
123
- ReflectionOp[ReflectionOp["objectLiteral"] = 44] = "objectLiteral";
124
- ReflectionOp[ReflectionOp["mappedType"] = 45] = "mappedType";
125
- ReflectionOp[ReflectionOp["in"] = 46] = "in";
126
- ReflectionOp[ReflectionOp["frame"] = 47] = "frame";
127
- ReflectionOp[ReflectionOp["moveFrame"] = 48] = "moveFrame";
128
- ReflectionOp[ReflectionOp["return"] = 49] = "return";
129
- ReflectionOp[ReflectionOp["templateLiteral"] = 50] = "templateLiteral";
130
- ReflectionOp[ReflectionOp["date"] = 51] = "date";
131
- ReflectionOp[ReflectionOp["int8Array"] = 52] = "int8Array";
132
- ReflectionOp[ReflectionOp["uint8ClampedArray"] = 53] = "uint8ClampedArray";
133
- ReflectionOp[ReflectionOp["uint8Array"] = 54] = "uint8Array";
134
- ReflectionOp[ReflectionOp["int16Array"] = 55] = "int16Array";
135
- ReflectionOp[ReflectionOp["uint16Array"] = 56] = "uint16Array";
136
- ReflectionOp[ReflectionOp["int32Array"] = 57] = "int32Array";
137
- ReflectionOp[ReflectionOp["uint32Array"] = 58] = "uint32Array";
138
- ReflectionOp[ReflectionOp["float32Array"] = 59] = "float32Array";
139
- ReflectionOp[ReflectionOp["float64Array"] = 60] = "float64Array";
140
- ReflectionOp[ReflectionOp["bigInt64Array"] = 61] = "bigInt64Array";
141
- ReflectionOp[ReflectionOp["arrayBuffer"] = 62] = "arrayBuffer";
142
- ReflectionOp[ReflectionOp["promise"] = 63] = "promise";
143
- ReflectionOp[ReflectionOp["arg"] = 64] = "arg";
144
- ReflectionOp[ReflectionOp["typeParameter"] = 65] = "typeParameter";
145
- ReflectionOp[ReflectionOp["typeParameterDefault"] = 66] = "typeParameterDefault";
146
- ReflectionOp[ReflectionOp["var"] = 67] = "var";
147
- ReflectionOp[ReflectionOp["loads"] = 68] = "loads";
148
- ReflectionOp[ReflectionOp["indexAccess"] = 69] = "indexAccess";
149
- ReflectionOp[ReflectionOp["keyof"] = 70] = "keyof";
150
- ReflectionOp[ReflectionOp["infer"] = 71] = "infer";
151
- ReflectionOp[ReflectionOp["typeof"] = 72] = "typeof";
152
- ReflectionOp[ReflectionOp["condition"] = 73] = "condition";
153
- ReflectionOp[ReflectionOp["jumpCondition"] = 74] = "jumpCondition";
154
- ReflectionOp[ReflectionOp["jump"] = 75] = "jump";
155
- ReflectionOp[ReflectionOp["call"] = 76] = "call";
156
- ReflectionOp[ReflectionOp["inline"] = 77] = "inline";
157
- ReflectionOp[ReflectionOp["inlineCall"] = 78] = "inlineCall";
158
- ReflectionOp[ReflectionOp["distribute"] = 79] = "distribute";
159
- ReflectionOp[ReflectionOp["extends"] = 80] = "extends";
160
- ReflectionOp[ReflectionOp["widen"] = 81] = "widen";
161
- ReflectionOp[ReflectionOp["static"] = 82] = "static";
162
- ReflectionOp[ReflectionOp["mappedType2"] = 83] = "mappedType2";
163
- ReflectionOp[ReflectionOp["functionReference"] = 84] = "functionReference";
164
- ReflectionOp[ReflectionOp["callSignature"] = 85] = "callSignature";
165
- /**
166
- * Assign for Enum, Interface, Class, and TypeAlias declaration at the very end
167
- * of the program the typeName. This is so that we have type names available even
168
- * if the JS code is minified.
169
- *
170
- * his operator also assigns originTypes to the type, as it acts as the finalization
171
- * step of a type.
172
- */
173
- ReflectionOp[ReflectionOp["typeName"] = 86] = "typeName";
174
- /**
175
- * If a class implement an interface or type,
176
- *
177
- * e.g. `class A implements B`, then B is on the stack and implements pops() it, and then assigns to A.implements = [B].
178
- *
179
- * This is only emitted when the class that is currently being described actually implements something.
180
- *
181
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
182
- * Expects a TypeClass on the stack.
183
- */
184
- ReflectionOp[ReflectionOp["implements"] = 87] = "implements";
185
- ReflectionOp[ReflectionOp["nominal"] = 88] = "nominal";
186
- /**
187
- * Custom Storm Software operators
188
- */
189
- ReflectionOp[ReflectionOp["tags"] = 89] = "tags";
190
- })(ReflectionOp || (ReflectionOp = {}));
191
-
192
- //#endregion
193
6
  //#region ../../node_modules/.pnpm/@typescript+vfs@1.6.4_typescript@5.9.3/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
194
7
  var require_vfs_cjs_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
195
8
  function e() {
@@ -6736,4 +6549,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
6736
6549
 
6737
6550
  //#endregion
6738
6551
  export { declarationTransformer as a, packSizeByte as c, debugPackStruct as i, transformer as l, DeclarationTransformer as n, encodeOps as o, ReflectionTransformer as r, packSize as s, Cache as t };
6739
- //# sourceMappingURL=compiler-Bg8jX6qU.mjs.map
6552
+ //# sourceMappingURL=compiler-CoBHJbw6.mjs.map
@@ -1,205 +1,7 @@
1
- import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-D9DM7Du_.mjs";
1
+ import { n as ReflectionOp } from "./type-C4eOl66J.mjs";
2
+ import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-SjpQNPJf.mjs";
2
3
  import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
3
4
 
4
- //#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/cjs/src/type.d.ts
5
- /**
6
- * The instruction set.
7
- * Should not be greater than 93 members, because we encode it via charCode starting at 33. +93 means we end up with charCode=126
8
- * (which is '~' and the last char that can be represented without \x. The next 127 is '\x7F').
9
- */
10
- declare enum ReflectionOp {
11
- never = 0,
12
- any = 1,
13
- unknown = 2,
14
- void = 3,
15
- object = 4,
16
- string = 5,
17
- number = 6,
18
- numberBrand = 7,
19
- boolean = 8,
20
- bigint = 9,
21
- symbol = 10,
22
- null = 11,
23
- undefined = 12,
24
- /**
25
- * The literal type of string, number, or boolean.
26
- *
27
- * This OP has 1 parameter. The next byte is the absolute address of the literal on the stack, which is the actual literal value.
28
- *
29
- * Pushes a function type.
30
- */
31
- literal = 13,
32
- /**
33
- * This OP pops all types on the current stack frame.
34
- *
35
- * This OP has 1 parameter. The next byte is the absolute address of a string|number|symbol entry on the stack.
36
- *
37
- * Pushes a function type.
38
- */
39
- function = 14,
40
- /**
41
- * This OP pops all types on the current stack frame.
42
- *
43
- * Pushes a method type.
44
- */
45
- method = 15,
46
- methodSignature = 16,
47
- //has 1 parameter, reference to stack for its property name
48
- parameter = 17,
49
- /**
50
- * This OP pops the latest type entry on the stack.
51
- *
52
- * Pushes a property type.
53
- */
54
- property = 18,
55
- propertySignature = 19,
56
- //has 1 parameter, reference to stack for its property name
57
- /**
58
- * This OP pops all types on the current stack frame. Those types should be method|property.
59
- *
60
- * Pushes a TypeClass onto the stack.
61
- */
62
- class = 20,
63
- /**
64
- * If a class extends another class with generics, this OP represents the generic type arguments of the super class.
65
- *
66
- * e.g. `class A extends B<string, boolean>`, string and boolean are on the stack and classExtends pops() them, and then assigns to A.extendsTypeArguments = [string, boolean].
67
- *
68
- * This is only emitted when the class that is currently being described actually extends another class and uses generics.
69
- *
70
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
71
- * Expects a TypeClass on the stack.
72
- */
73
- classExtends = 21,
74
- /**
75
- * This OP has 1 parameter, the stack entry to the actual class symbol.
76
- */
77
- classReference = 22,
78
- /**
79
- * Marks the last entry in the stack as optional. Used for method|property. Equal to the QuestionMark operator in a property assignment.
80
- */
81
- optional = 23,
82
- readonly = 24,
83
- public = 25,
84
- private = 26,
85
- protected = 27,
86
- abstract = 28,
87
- defaultValue = 29,
88
- description = 30,
89
- rest = 31,
90
- regexp = 32,
91
- enum = 33,
92
- enumMember = 34,
93
- //has one argument, the name.
94
- set = 35,
95
- map = 36,
96
- /**
97
- * Pops the latest stack entry and uses it as T for an array type.
98
- *
99
- * Pushes an array type.
100
- */
101
- array = 37,
102
- tuple = 38,
103
- tupleMember = 39,
104
- namedTupleMember = 40,
105
- //has one argument, the name.
106
- union = 41,
107
- //pops frame. requires frame start when stack can be dirty.
108
- intersection = 42,
109
- indexSignature = 43,
110
- objectLiteral = 44,
111
- mappedType = 45,
112
- //2 parameters: functionPointer and modifier.
113
- in = 46,
114
- frame = 47,
115
- //creates a new stack frame
116
- moveFrame = 48,
117
- //pop() as T, pops the current stack frame, push(T)
118
- return = 49,
119
- templateLiteral = 50,
120
- date = 51,
121
- int8Array = 52,
122
- uint8ClampedArray = 53,
123
- uint8Array = 54,
124
- int16Array = 55,
125
- uint16Array = 56,
126
- int32Array = 57,
127
- uint32Array = 58,
128
- float32Array = 59,
129
- float64Array = 60,
130
- bigInt64Array = 61,
131
- arrayBuffer = 62,
132
- promise = 63,
133
- arg = 64,
134
- //@deprecated. parameter is a number referencing an entry in the stack, relative to the beginning of the current frame, *-1. pushes that entry onto the stack. this is related to the calling convention.
135
- typeParameter = 65,
136
- //generic type parameter, e.g. T in a generic. has 1 parameter: reference to the name.
137
- typeParameterDefault = 66,
138
- //generic type parameter with a default value, e.g. T in a generic. has 1 parameter: reference to the name. pop() for the default value
139
- var = 67,
140
- //reserve a new variable in the stack
141
- loads = 68,
142
- //pushes to the stack a referenced value in the stack. has 2 parameters: <frame> <index>, frame is a negative offset to the frame, and index the index of the stack entry withing the referenced frame
143
- indexAccess = 69,
144
- //T['string'], 2 items on the stack
145
- keyof = 70,
146
- //keyof operator
147
- infer = 71,
148
- //2 params, like `loads`
149
- typeof = 72,
150
- //1 parameter that points to a function returning the runtime value from which we need to extract the type
151
- condition = 73,
152
- jumpCondition = 74,
153
- //@deprecated. used when INFER is used in `extends` conditional branch. 2 args: left program, right program
154
- jump = 75,
155
- //jump to an address
156
- call = 76,
157
- //has one parameter, the next program address. creates a new stack frame with current program address as first stack entry, and jumps back to that + 1.
158
- inline = 77,
159
- inlineCall = 78,
160
- distribute = 79,
161
- //has one parameter, the co-routine program index.
162
- extends = 80,
163
- //X extends Y in a conditional type, XY popped from the stack, pushes boolean on the stack
164
- widen = 81,
165
- //widens the type on the stack, .e.g 'asd' => string, 34 => number, etc. this is necessary for infer runtime data, and widen if necessary (object member or non-contained literal)
166
- static = 82,
167
- mappedType2 = 83,
168
- //same as mappedType2 but the given functionPointer returns a tuple [type, name]
169
- functionReference = 84,
170
- //Same as classReference but for functions
171
- callSignature = 85,
172
- //Same as function but for call signatures (in object literals)
173
- /**
174
- * Assign for Enum, Interface, Class, and TypeAlias declaration at the very end
175
- * of the program the typeName. This is so that we have type names available even
176
- * if the JS code is minified.
177
- *
178
- * his operator also assigns originTypes to the type, as it acts as the finalization
179
- * step of a type.
180
- */
181
- typeName = 86,
182
- //has one parameter, the index of the stack entry that contains the type name. Uses current head of the stack as type and assigns typeName to it.
183
- /**
184
- * If a class implement an interface or type,
185
- *
186
- * e.g. `class A implements B`, then B is on the stack and implements pops() it, and then assigns to A.implements = [B].
187
- *
188
- * This is only emitted when the class that is currently being described actually implements something.
189
- *
190
- * This OP has 1 argument and pops x types from the stack. X is the first argument.
191
- * Expects a TypeClass on the stack.
192
- */
193
- implements = 87,
194
- //pops one type from the stack and assigns it to the latest class on the stack as `implements` type.
195
- nominal = 88,
196
- //marks the last type on the stack as nominal. (used at the end of class/interface/type alias programs).
197
- /**
198
- * Custom Storm Software operators
199
- */
200
- tags = 89
201
- }
202
- //#endregion
203
5
  //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
204
6
  /**
205
7
  * Contains @internal properties that are not yet in the public API of TS.
@@ -575,4 +377,4 @@ declare const transformer: CustomTransformerFactory;
575
377
  declare const declarationTransformer: CustomTransformerFactory;
576
378
  //#endregion
577
379
  export { debugPackStruct as a, packSize as c, TagsReflectionStruct as i, packSizeByte as l, DeclarationTransformer as n, declarationTransformer as o, ReflectionTransformer as r, encodeOps as s, Cache as t, transformer as u };
578
- //# sourceMappingURL=compiler-Nkxc4PLJ.d.mts.map
380
+ //# sourceMappingURL=compiler-DLeSXEon.d.mts.map