MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / Rule

Interface Rule

src/common/rule.ts:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69interface Rule {
70 predefined: any;
71 check?: CheckFuction; // 检查是否有效的函数
72 minimalVersion?: string;
73 needSave?: boolean;
74 metadata?: FieldMetadataMap; // 字段UI元数据(仅用于UI渲染,不持久化)
75 notice?: string;
76 docUrl?: string;
77}
78
79export class ColorRule implements Rule {
80 predefined: ColorConfig;

Callers

nothing calls this directly

Implementers 8

ColorRulesrc/common/rule.ts
GroupRulesrc/common/rule.ts
FlexibleGroupRulesrc/common/rule.ts
ConstantGroupRulesrc/common/rule.ts
UnionRulesrc/common/rule.ts
FlexibleUnionRulesrc/common/rule.ts
TypeRulesrc/common/rule.ts
StructRulesrc/common/rule.ts

Calls

no outgoing calls

Tested by

no test coverage detected