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

Commit

Permalink
feat: order
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jan 27, 2024
1 parent 0c337ab commit 2e6a77e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type RawCommonProps = {
*
* 当前规则的冷却时间, 或者执行 action 最小间隔
*
* 默认值: 1000
* @default 1000
*/
actionCd?: number;

Expand Down Expand Up @@ -83,10 +83,10 @@ type RawCommonProps = {
actionMaximum?: number;

/**
* 默认值: `activity`
*
* 当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则
*
* @default 'activity'
*
* @example
* 'activity'
* // 当 activity 刷新时, 唤醒规则
Expand Down Expand Up @@ -117,6 +117,18 @@ type RawCommonProps = {
*/
actionMaximumKey?: number;

/**
* 规则参与匹配的顺序, 数字越小越先匹配
*
* 如果两个规则 order 相同, 按照 groups 中的声明顺序匹配, app 类型规则顺序优先于 global 类型规则
*
* 属于不同订阅的规则按照订阅列表中顺序执行, 长按订阅卡片可以拖动排序
*
* @default 0
*
*/
order?: number;

/**
* 当前 规则/规则组 的快照链接, 增强订阅可维护性
*/
Expand Down

0 comments on commit 2e6a77e

Please sign in to comment.