refactor(tracers): 简化 ArrayTracerMetadata 为接口类型
将类型别名改为接口声明,并移除已被注释的属性,使类型定义更清晰。
This commit is contained in:
@@ -7,10 +7,9 @@ interface ArrayTracerCreateOptions<T extends JsonValue> {
|
||||
walker?: (builder: { add: (item: T) => void }) => void;
|
||||
}
|
||||
|
||||
type ArrayTracerMetadata = {
|
||||
// initial: JsonValue[];
|
||||
interface ArrayTracerMetadata {
|
||||
length: number;
|
||||
};
|
||||
}
|
||||
|
||||
export const createArrayTracer = <T extends JsonValue = JsonValue>(
|
||||
options: ArrayTracerCreateOptions<T>,
|
||||
|
||||
Reference in New Issue
Block a user