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

Commit

Permalink
feat: scopeKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jan 30, 2024
1 parent dcd0623 commit 58d46d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ type RawGroupProps = RawCommonProps & {
*/
enable?: boolean;

/**
* 其它 group 的 key, 允许将目标组的 rule 添加到当前组的作用域
*
* 假设 group1{key=1} 有一个 rule1{key=1}, group2{key=2} 有一个 rule2{key=2}
*
* 如果 group1 的 scopeKeys=[2], 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 2
*
*/
scopeKeys?: number[];

// rules: RawRuleProps[];
};

Expand Down

0 comments on commit 58d46d8

Please sign in to comment.