新增NCBuilder接口 (#11)

新增NCBuilder接口;
优化部分类型定义,格式化代码;

Reviewed-on: #11
Reviewed-by: 谢凡 <xief@163.com>
Co-authored-by: 2817212736@qq.com <2817212736@qq.com>
Co-committed-by: 2817212736@qq.com <2817212736@qq.com>
This commit is contained in:
2025-08-13 17:57:59 +08:00
committed by 谢凡
parent 03a3b2f896
commit d4ba7c8d95
4 changed files with 135 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ import { ConfigBase } from "./models/config";
/**
* 加工处理器上下文
*/
export interface ProcessorContext<TInput, TOutput, TConfig extends ConfigBase> {
export interface ProcessorContext<TInput = any, TOutput = any, TConfig extends ConfigBase = ConfigBase> {
/**
* 输入数据
*/