Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
perf: scopeKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jan 30, 2024
1 parent 58d46d8 commit 2177689
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,15 @@ type RawGroupProps = RawCommonProps & {
enable?: boolean;

/**
* 其它 group 的 key, 允许将目标组的 rule 添加到当前组的作用域
* 其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域
*
* 假设 group1{key=1} 有一个 rule1{key=1}, group2{key=2} 有一个 rule2{key=2}
*
* 如果 group1 的 scopeKeys=[2], 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 2
*
* 如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule
*/
scopeKeys?: number[];
scopeKeys?: IArray<number>;

// rules: RawRuleProps[];
};
Expand Down

0 comments on commit 2177689

Please sign in to comment.