docs: Integer

This commit is contained in:
lisonge 2024-02-03 17:58:32 +08:00
parent be040667b2
commit 58a78a5707

View File

@ -3,12 +3,13 @@
*/
export interface RawSubscription {
/**
*
* , id不一致则更新失败
*
* id 使, id
* id GKD 使, id
*
*/
id: number;
id: Integer;
/**
*
@ -20,7 +21,7 @@ export interface RawSubscription {
*
* version version
*/
version: number;
version: Integer;
/**
*
@ -100,7 +101,7 @@ export interface RawCategory {
*
* /
*/
key: number;
key: Integer;
/**
*
@ -171,7 +172,7 @@ export interface RawCommonProps {
*
* @default 1000
*/
actionCd?: number;
actionCd?: Integer;
/**
* 单位: 毫秒
@ -179,7 +180,7 @@ export interface RawCommonProps {
* 延迟执行: 查询到节点->-> action
*
*/
actionDelay?: number;
actionDelay?: Integer;
/**
*
@ -221,7 +222,7 @@ export interface RawCommonProps {
* /, , 使
*
*/
matchDelay?: number;
matchDelay?: Integer;
/**
* 单位: 毫秒
@ -231,7 +232,7 @@ export interface RawCommonProps {
* 广 activityId /广, 广,
*
*/
matchTime?: number;
matchTime?: Integer;
/**
*
@ -243,7 +244,7 @@ export interface RawCommonProps {
* /,
*
*/
actionMaximum?: number;
actionMaximum?: Integer;
/**
* matchTime/actionMaximum ,
@ -269,7 +270,7 @@ export interface RawCommonProps {
*
* key rule actionCd=3000, rule rule , 3000 rule cd
*/
actionCdKey?: number;
actionCdKey?: Integer;
/**
* key rule
@ -278,7 +279,7 @@ export interface RawCommonProps {
*
* key rule actionMaximum=1, rule rule , rule
*/
actionMaximumKey?: number;
actionMaximumKey?: Integer;
/**
* ,
@ -290,7 +291,7 @@ export interface RawCommonProps {
* @default 0
*
*/
order?: number;
order?: Integer;
/**
* / ,
@ -316,7 +317,7 @@ export interface RawRuleProps extends RawCommonProps {
*
* ,
*/
key?: number;
key?: Integer;
/**
*
@ -333,7 +334,7 @@ export interface RawRuleProps extends RawCommonProps {
* , , 广
*
*/
preKeys?: IArray<number>;
preKeys?: IArray<Integer>;
/**
* @example
@ -403,7 +404,7 @@ export interface RawGroupProps extends RawCommonProps {
*
* key ,
*/
key: number;
key: Integer;
/**
*
@ -432,7 +433,7 @@ export interface RawGroupProps extends RawCommonProps {
* key rule, 使 rule, scopeKeys rule
*
*/
scopeKeys?: IArray<number>;
scopeKeys?: IArray<Integer>;
// rules: RawRuleProps[];
}
@ -495,3 +496,12 @@ export interface RawGlobalRuleProps {
*
*/
export type IArray<T> = T | T[];
/**
*
*
* @example
* 114514 // ✅
* 2.5 // ❌
*/
export type Integer = number & {};