@longzai-intelligence-scripts/config 0.0.5 → 0.0.7
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/index.d.ts +0 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* 定义 lzi-scripts.config.ts 配置结构与真源注册数据契约
|
|
4
3
|
*
|
|
@@ -164,8 +163,6 @@ type ScriptsConfigResult = {
|
|
|
164
163
|
*/
|
|
165
164
|
configPath: string | null;
|
|
166
165
|
};
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/define.config.d.ts
|
|
169
166
|
/**
|
|
170
167
|
* lzi-scripts 配置工厂(恒等返回,仅提供类型约束)
|
|
171
168
|
*
|
|
@@ -173,8 +170,6 @@ type ScriptsConfigResult = {
|
|
|
173
170
|
* @returns 原样返回的配置对象
|
|
174
171
|
*/
|
|
175
172
|
declare const defineConfig: (config?: LziScriptsConfig) => LziScriptsConfig;
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/define.registry.d.ts
|
|
178
173
|
/**
|
|
179
174
|
* 脚本档案工厂(恒等返回,仅提供类型约束)
|
|
180
175
|
*
|
|
@@ -203,8 +198,6 @@ declare const defineCompanionEntries: (companions: CompanionEntry[]) => Companio
|
|
|
203
198
|
* @returns 原样返回的注册数据
|
|
204
199
|
*/
|
|
205
200
|
declare const defineRegistry: (data: ScriptsRegistryData) => ScriptsRegistryData;
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/load.config.d.ts
|
|
208
201
|
/**
|
|
209
202
|
* 自起点目录逐级上溯查找就地配置文件
|
|
210
203
|
*
|
|
@@ -220,8 +213,6 @@ declare const findScriptsConfigFile: (startDir: string) => string | null;
|
|
|
220
213
|
* @throws {@link Error} 配置文件存在但动态加载失败或 default export 形态非法
|
|
221
214
|
*/
|
|
222
215
|
declare const loadScriptsConfig: (startDir?: string) => Promise<ScriptsConfigResult>;
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/registry-resolution.utils.d.ts
|
|
225
216
|
/**
|
|
226
217
|
* 真源命中来源(解析链层级)
|
|
227
218
|
*/
|
|
@@ -277,5 +268,4 @@ type ResolveRegistryOptions = {
|
|
|
277
268
|
* @returns 解析结果;全链未命中返回 null
|
|
278
269
|
*/
|
|
279
270
|
declare const resolveRegistry: (options: ResolveRegistryOptions) => Promise<ResolvedRegistry | null>;
|
|
280
|
-
//#endregion
|
|
281
271
|
export { type AlternativeDeclaration, type CompanionEntry, type ExemptionDeclaration, type LegacyMapping, type LziScriptsConfig, type RegistrySource, type ResolveRegistryOptions, type ResolvedRegistry, type ScriptEntry, type ScriptSeverity, type ScriptsConfigResult, type ScriptsProfileKey, type ScriptsRegistryData, asRegistryData, defineCompanionEntries, defineConfig, defineLegacyMappings, defineProfile, defineRegistry, findScriptsConfigFile, loadScriptsConfig, resolveRegistry };
|