@powerlines/deepkit 0.7.7 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{packages/deepkit/schemas/reflection.cjs → capnp-CkbeQ2uR.cjs} +1189 -4
- package/dist/{packages/deepkit/schemas/reflection.mjs → capnp-D0NNeu5y.mjs} +1175 -259
- package/dist/capnp.cjs +46 -955
- package/dist/capnp.d.cts +3 -1
- package/dist/capnp.d.mts +3 -1
- package/dist/capnp.mjs +2 -911
- package/dist/{_virtual/_rolldown/runtime.cjs → chunk-BmvPcxpV.cjs} +12 -2
- package/dist/config-ClUYu_c-.d.mts +40 -0
- package/dist/config-u7zg69VP.d.cts +40 -0
- package/dist/esbuild-plugin.cjs +1 -1
- package/dist/esbuild-plugin.d.cts +7 -8
- package/dist/esbuild-plugin.d.mts +7 -8
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/dist/reflect-type.cjs +3 -3
- package/dist/reflect-type.mjs +1 -1
- package/dist/{packages/deepkit/schemas/reflection.d.mts → reflection-8fgblw1P.d.cts} +4 -2
- package/dist/{packages/deepkit/schemas/reflection.d.cts → reflection-l3nKKCgX.d.mts} +4 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/transformer-BseLGhId.mjs +1360 -0
- package/dist/transformer-Ct9lYNRY.cjs +1367 -0
- package/dist/transformer.cjs +3 -52
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -50
- package/dist/transpile.cjs +4 -4
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utilities.cjs +1 -1
- package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-Ba99lbTF.mjs} +11 -12
- package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-CZ0k-pTB.d.cts} +6 -6
- package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-DIcnaeXC.d.mts} +6 -6
- package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-DYfCGCv5.cjs} +10 -11
- package/dist/vendor/{config-eSNKiBGB.mjs → config-BFH3ETeQ.mjs} +16 -15
- package/dist/vendor/{config-BTErH18l.d.mts → config-BQtfsjwX.d.mts} +32 -18
- package/dist/vendor/{config-BbFVGRVh.cjs → config-Cadu6Rkt.cjs} +18 -17
- package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D0jKbRFV.d.cts} +32 -18
- package/dist/vendor/core.cjs +97 -120
- package/dist/vendor/core.mjs +1 -24
- 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 +2 -2
- package/dist/vendor/type-compiler/config.d.cts +2 -2
- package/dist/vendor/type-compiler/config.d.mts +2 -2
- package/dist/vendor/type-compiler/config.mjs +2 -2
- package/dist/vendor/type-compiler/index.cjs +5 -5
- package/dist/vendor/type-compiler/index.d.cts +4 -4
- package/dist/vendor/type-compiler/index.d.mts +4 -4
- package/dist/vendor/type-compiler/index.mjs +5 -5
- package/dist/vendor/type.cjs +11015 -4928
- package/dist/vendor/type.d.cts +220 -24
- package/dist/vendor/type.d.mts +220 -24
- package/dist/vendor/type.mjs +11521 -5630
- package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
- package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +41 -0
- package/package.json +4 -4
- package/schemas/reflection.capnp +3 -2
- package/schemas/reflection.cjs +6 -0
- package/schemas/reflection.d.cts +2 -0
- package/schemas/reflection.d.mts +2 -0
- package/schemas/reflection.mjs +6 -0
- package/dist/_virtual/_rolldown/runtime.mjs +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts, { CompilerOptions, ParseConfigHost } from "typescript";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Default means reflection is enabled for this file.
|
|
6
6
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -13,14 +13,19 @@ type RawMode = Mode | "" | boolean | string | string[] | undefined;
|
|
|
13
13
|
declare function isObject(obj: any): obj is {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
17
|
-
type Level = (typeof
|
|
16
|
+
declare const level: string[];
|
|
17
|
+
type Level = (typeof level)[number];
|
|
18
18
|
/**
|
|
19
19
|
* These are the values that can be in the tsconfig.json file.
|
|
20
20
|
*/
|
|
21
21
|
interface TsConfigJson {
|
|
22
22
|
extends?: string;
|
|
23
23
|
compilerOptions?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
26
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
27
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
28
|
+
*/
|
|
24
29
|
reflection?: RawMode;
|
|
25
30
|
/**
|
|
26
31
|
* Defines the level of reflection to be used during the transpilation process.
|
|
@@ -30,9 +35,9 @@ interface TsConfigJson {
|
|
|
30
35
|
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
31
36
|
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
32
37
|
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
33
|
-
* - `
|
|
38
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
34
39
|
*/
|
|
35
|
-
|
|
40
|
+
level?: Level;
|
|
36
41
|
deepkitCompilerOptions?: {
|
|
37
42
|
/**
|
|
38
43
|
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
@@ -45,11 +50,12 @@ interface TsConfigJson {
|
|
|
45
50
|
*
|
|
46
51
|
* @remarks
|
|
47
52
|
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
48
|
-
* - `minimal` - Only the essential type information is captured.
|
|
49
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
50
|
-
* - `
|
|
53
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
54
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
55
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
56
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
level?: Level;
|
|
53
59
|
/**
|
|
54
60
|
* If a tsconfig extends another tsconfig, this option defines how the reflection/exclude
|
|
55
61
|
* options are merged. The default strategy is `merge`, which means that the reflection/exclude
|
|
@@ -72,14 +78,22 @@ interface ReflectionConfig {
|
|
|
72
78
|
*/
|
|
73
79
|
exclude?: string[];
|
|
74
80
|
/**
|
|
75
|
-
* Either
|
|
76
|
-
* or a list of globs to
|
|
81
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
82
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
83
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
77
84
|
*/
|
|
78
85
|
reflection?: string[] | Mode;
|
|
79
86
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
91
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
92
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
93
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
94
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
95
|
+
*/
|
|
96
|
+
level?: Level;
|
|
83
97
|
}
|
|
84
98
|
interface CurrentConfig extends ReflectionConfig {
|
|
85
99
|
compilerOptions: ts.CompilerOptions;
|
|
@@ -90,14 +104,14 @@ interface ResolvedConfig extends ReflectionConfig {
|
|
|
90
104
|
path: string;
|
|
91
105
|
compilerOptions: ts.CompilerOptions;
|
|
92
106
|
mergeStrategy: "merge" | "replace";
|
|
93
|
-
|
|
107
|
+
level: Level;
|
|
94
108
|
}
|
|
95
109
|
declare function reflectionModeMatcher(config: ReflectionConfig, filePath: string): Mode;
|
|
96
110
|
declare function parseRawMode(mode: RawMode): string[] | Mode;
|
|
97
111
|
interface MatchResult {
|
|
98
112
|
tsConfigPath: string;
|
|
99
113
|
mode: (typeof reflectionModes)[number];
|
|
100
|
-
level: (typeof
|
|
114
|
+
level: (typeof level)[number];
|
|
101
115
|
}
|
|
102
116
|
declare const defaultExcluded: string[];
|
|
103
117
|
type Matcher = (path: string) => MatchResult;
|
|
@@ -112,5 +126,5 @@ declare function getConfigResolver(cache: ReflectionConfigCache, host: ParseConf
|
|
|
112
126
|
fileName: string;
|
|
113
127
|
}, tsConfigPath?: string): ConfigResolver;
|
|
114
128
|
//#endregion
|
|
115
|
-
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f,
|
|
116
|
-
//# sourceMappingURL=config-
|
|
129
|
+
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f, parseRawMode as g, level as h, MatchResult as i, ReflectionConfigCache as l, isObject as m, CurrentConfig as n, Mode as o, getConfigResolver as p, Level as r, RawMode as s, ConfigResolver as t, ResolvedConfig as u, reflectionModes as v };
|
|
130
|
+
//# sourceMappingURL=config-BQtfsjwX.d.mts.map
|
|
@@ -4,7 +4,7 @@ typescript = require_chunk.__toESM(typescript);
|
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
6
6
|
|
|
7
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
7
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
8
8
|
function isDebug(level = 1) {
|
|
9
9
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
10
10
|
return "undefined" !== typeof process && "string" === typeof process.env.DEBUG && process.env.DEBUG.includes(expected);
|
|
@@ -3365,7 +3365,7 @@ var require_micromatch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
3365
3365
|
}));
|
|
3366
3366
|
|
|
3367
3367
|
//#endregion
|
|
3368
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3368
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
3369
3369
|
var import_micromatch = /* @__PURE__ */ require_chunk.__toESM(require_micromatch(), 1);
|
|
3370
3370
|
const { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = typescript.default;
|
|
3371
3371
|
function patternMatch(path, patterns, base) {
|
|
@@ -3425,7 +3425,7 @@ var Resolver = class {
|
|
|
3425
3425
|
};
|
|
3426
3426
|
|
|
3427
3427
|
//#endregion
|
|
3428
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3428
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
3429
3429
|
/**
|
|
3430
3430
|
* Default means reflection is enabled for this file.
|
|
3431
3431
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -3442,11 +3442,11 @@ function isObject(obj) {
|
|
|
3442
3442
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
3443
3443
|
}
|
|
3444
3444
|
const defaultMergeStrategy = "merge";
|
|
3445
|
-
const
|
|
3445
|
+
const level = [
|
|
3446
3446
|
"minimal",
|
|
3447
|
-
"
|
|
3447
|
+
"default",
|
|
3448
3448
|
"extended",
|
|
3449
|
-
"
|
|
3449
|
+
"all"
|
|
3450
3450
|
];
|
|
3451
3451
|
/**
|
|
3452
3452
|
* Read config and parses under TypeScript specification.
|
|
@@ -3467,7 +3467,7 @@ function readTsConfig(parseConfigHost, path) {
|
|
|
3467
3467
|
const tsconfig = JSON.parse(json);
|
|
3468
3468
|
return Object.assign(configFile.config, {
|
|
3469
3469
|
compilerOptions: parsed.options,
|
|
3470
|
-
|
|
3470
|
+
level: tsconfig.level ? String(tsconfig.level) : void 0
|
|
3471
3471
|
});
|
|
3472
3472
|
}
|
|
3473
3473
|
function reflectionModeMatcher(config, filePath) {
|
|
@@ -3511,8 +3511,9 @@ function appendPaths(strategy = defaultMergeStrategy, parent, existing) {
|
|
|
3511
3511
|
return [...parent, ...existing];
|
|
3512
3512
|
}
|
|
3513
3513
|
function applyConfigValues(existing, parent, baseDir) {
|
|
3514
|
-
const
|
|
3515
|
-
|
|
3514
|
+
const parentLevel = parent.deepkitCompilerOptions?.level || parent.level || parent.compilerOptions?.level;
|
|
3515
|
+
let parentReflection = isObject(parent.deepkitCompilerOptions) ? parent.deepkitCompilerOptions?.reflection : parent.reflection;
|
|
3516
|
+
if (parentLevel && !parentReflection) parentReflection = "default";
|
|
3516
3517
|
if (isObject(parent.deepkitCompilerOptions) && "undefined" === typeof existing.mergeStrategy) existing.mergeStrategy = parent.deepkitCompilerOptions.mergeStrategy;
|
|
3517
3518
|
if ("undefined" !== typeof parentReflection) {
|
|
3518
3519
|
const next = parseRawMode(parentReflection);
|
|
@@ -3520,8 +3521,8 @@ function applyConfigValues(existing, parent, baseDir) {
|
|
|
3520
3521
|
else if ("string" === typeof existing.reflection) {} else if (Array.isArray(next) && Array.isArray(existing.reflection)) existing.reflection = appendPaths(existing.mergeStrategy, next, existing.reflection);
|
|
3521
3522
|
else if ("string" === typeof next && Array.isArray(existing.reflection)) {}
|
|
3522
3523
|
}
|
|
3523
|
-
if ("undefined" !== typeof
|
|
3524
|
-
if ("undefined" === typeof existing.
|
|
3524
|
+
if ("undefined" !== typeof parentLevel) {
|
|
3525
|
+
if ("undefined" === typeof existing.level) existing.level = parentLevel;
|
|
3525
3526
|
}
|
|
3526
3527
|
if (isObject(parent.deepkitCompilerOptions)) {
|
|
3527
3528
|
if (`undefined` !== typeof parent.deepkitCompilerOptions.exclude) {
|
|
@@ -3590,7 +3591,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3590
3591
|
compilerOptions: Object.assign(config.compilerOptions, compilerOptions),
|
|
3591
3592
|
exclude: config.exclude,
|
|
3592
3593
|
reflection: config.reflection,
|
|
3593
|
-
|
|
3594
|
+
level: config.level || (config.compilerOptions?.level ? String(config.compilerOptions?.level) : void 0) || "default",
|
|
3594
3595
|
mergeStrategy: config.mergeStrategy || defaultMergeStrategy
|
|
3595
3596
|
};
|
|
3596
3597
|
if (isDebug()) debug(`Found config ${resolvedConfig.path}:\nreflection:`, resolvedConfig.reflection, `\nexclude:`, resolvedConfig.exclude, `\npaths:`, resolvedConfig.compilerOptions.paths);
|
|
@@ -3598,7 +3599,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3598
3599
|
return {
|
|
3599
3600
|
mode: reflectionModeMatcher(config, path),
|
|
3600
3601
|
tsConfigPath,
|
|
3601
|
-
level: resolvedConfig.
|
|
3602
|
+
level: resolvedConfig.level
|
|
3602
3603
|
};
|
|
3603
3604
|
};
|
|
3604
3605
|
return cache[tsConfigPath] = {
|
|
@@ -3644,16 +3645,16 @@ Object.defineProperty(exports, 'isObject', {
|
|
|
3644
3645
|
return isObject;
|
|
3645
3646
|
}
|
|
3646
3647
|
});
|
|
3647
|
-
Object.defineProperty(exports, '
|
|
3648
|
+
Object.defineProperty(exports, 'level', {
|
|
3648
3649
|
enumerable: true,
|
|
3649
3650
|
get: function () {
|
|
3650
|
-
return
|
|
3651
|
+
return level;
|
|
3651
3652
|
}
|
|
3652
3653
|
});
|
|
3653
|
-
Object.defineProperty(exports, '
|
|
3654
|
+
Object.defineProperty(exports, 'parseRawMode', {
|
|
3654
3655
|
enumerable: true,
|
|
3655
3656
|
get: function () {
|
|
3656
|
-
return
|
|
3657
|
+
return parseRawMode;
|
|
3657
3658
|
}
|
|
3658
3659
|
});
|
|
3659
3660
|
Object.defineProperty(exports, 'reflectionModeMatcher', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts, { CompilerOptions, ParseConfigHost } from "typescript";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Default means reflection is enabled for this file.
|
|
6
6
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -13,14 +13,19 @@ type RawMode = Mode | "" | boolean | string | string[] | undefined;
|
|
|
13
13
|
declare function isObject(obj: any): obj is {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
17
|
-
type Level = (typeof
|
|
16
|
+
declare const level: string[];
|
|
17
|
+
type Level = (typeof level)[number];
|
|
18
18
|
/**
|
|
19
19
|
* These are the values that can be in the tsconfig.json file.
|
|
20
20
|
*/
|
|
21
21
|
interface TsConfigJson {
|
|
22
22
|
extends?: string;
|
|
23
23
|
compilerOptions?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
26
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
27
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
28
|
+
*/
|
|
24
29
|
reflection?: RawMode;
|
|
25
30
|
/**
|
|
26
31
|
* Defines the level of reflection to be used during the transpilation process.
|
|
@@ -30,9 +35,9 @@ interface TsConfigJson {
|
|
|
30
35
|
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
31
36
|
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
32
37
|
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
33
|
-
* - `
|
|
38
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
34
39
|
*/
|
|
35
|
-
|
|
40
|
+
level?: Level;
|
|
36
41
|
deepkitCompilerOptions?: {
|
|
37
42
|
/**
|
|
38
43
|
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
@@ -45,11 +50,12 @@ interface TsConfigJson {
|
|
|
45
50
|
*
|
|
46
51
|
* @remarks
|
|
47
52
|
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
48
|
-
* - `minimal` - Only the essential type information is captured.
|
|
49
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
50
|
-
* - `
|
|
53
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
54
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
55
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
56
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
level?: Level;
|
|
53
59
|
/**
|
|
54
60
|
* If a tsconfig extends another tsconfig, this option defines how the reflection/exclude
|
|
55
61
|
* options are merged. The default strategy is `merge`, which means that the reflection/exclude
|
|
@@ -72,14 +78,22 @@ interface ReflectionConfig {
|
|
|
72
78
|
*/
|
|
73
79
|
exclude?: string[];
|
|
74
80
|
/**
|
|
75
|
-
* Either
|
|
76
|
-
* or a list of globs to
|
|
81
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
82
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
83
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
77
84
|
*/
|
|
78
85
|
reflection?: string[] | Mode;
|
|
79
86
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
91
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
92
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
93
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
94
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
95
|
+
*/
|
|
96
|
+
level?: Level;
|
|
83
97
|
}
|
|
84
98
|
interface CurrentConfig extends ReflectionConfig {
|
|
85
99
|
compilerOptions: ts.CompilerOptions;
|
|
@@ -90,14 +104,14 @@ interface ResolvedConfig extends ReflectionConfig {
|
|
|
90
104
|
path: string;
|
|
91
105
|
compilerOptions: ts.CompilerOptions;
|
|
92
106
|
mergeStrategy: "merge" | "replace";
|
|
93
|
-
|
|
107
|
+
level: Level;
|
|
94
108
|
}
|
|
95
109
|
declare function reflectionModeMatcher(config: ReflectionConfig, filePath: string): Mode;
|
|
96
110
|
declare function parseRawMode(mode: RawMode): string[] | Mode;
|
|
97
111
|
interface MatchResult {
|
|
98
112
|
tsConfigPath: string;
|
|
99
113
|
mode: (typeof reflectionModes)[number];
|
|
100
|
-
level: (typeof
|
|
114
|
+
level: (typeof level)[number];
|
|
101
115
|
}
|
|
102
116
|
declare const defaultExcluded: string[];
|
|
103
117
|
type Matcher = (path: string) => MatchResult;
|
|
@@ -112,5 +126,5 @@ declare function getConfigResolver(cache: ReflectionConfigCache, host: ParseConf
|
|
|
112
126
|
fileName: string;
|
|
113
127
|
}, tsConfigPath?: string): ConfigResolver;
|
|
114
128
|
//#endregion
|
|
115
|
-
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f,
|
|
116
|
-
//# sourceMappingURL=config-
|
|
129
|
+
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f, parseRawMode as g, level as h, MatchResult as i, ReflectionConfigCache as l, isObject as m, CurrentConfig as n, Mode as o, getConfigResolver as p, Level as r, RawMode as s, ConfigResolver as t, ResolvedConfig as u, reflectionModes as v };
|
|
130
|
+
//# sourceMappingURL=config-D0jKbRFV.d.cts.map
|