diff --git a/src/rules/condition-builder.js b/src/rules/condition-builder.js index 41aec607f..00877911c 100644 --- a/src/rules/condition-builder.js +++ b/src/rules/condition-builder.js @@ -23,7 +23,7 @@ class ConditionBuilder { /** * Move to the rule operations * - * @param {*} fn the optional function to execute + * @param {*} [fn] the optional function to execute * @returns {operations.OperationBuilder} */ then (fn) { @@ -60,7 +60,7 @@ class ConditionConf { /** * - * @param {*} fn an optional function + * @param {*} [fn] an optional function * @returns ConditionBuilder */ then (fn) { diff --git a/src/rules/trigger-builder.js b/src/rules/trigger-builder.js index cfc9775eb..cc9266beb 100644 --- a/src/rules/trigger-builder.js +++ b/src/rules/trigger-builder.js @@ -140,7 +140,7 @@ class TriggerConf { /** * Move to the rule operations * - * @param {*} fn the optional function to execute + * @param {*} [fn] the optional function to execute * @returns {operations.OperationBuilder} */ then (fn) { diff --git a/types/rules/condition-builder.d.ts b/types/rules/condition-builder.d.ts index b71388482..e909e14f6 100644 --- a/types/rules/condition-builder.d.ts +++ b/types/rules/condition-builder.d.ts @@ -65,10 +65,10 @@ export class ConditionBuilder { /** * Move to the rule operations * - * @param {*} fn the optional function to execute + * @param {*} [fn] the optional function to execute * @returns {operations.OperationBuilder} */ - then(fn: any): operations.OperationBuilder; + then(fn?: any): operations.OperationBuilder; /** * Condition of an item in determining whether to process rule. * diff --git a/types/rules/condition-builder.d.ts.map b/types/rules/condition-builder.d.ts.map index 7d375a282..eead24b5b 100644 --- a/types/rules/condition-builder.d.ts.map +++ b/types/rules/condition-builder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"condition-builder.d.ts","sourceRoot":"","sources":["../../src/rules/condition-builder.js"],"names":[],"mappings":"AAsEA;;;;;;GAMG;AACH;IACE;;;;SAIK;IACL,4CAIC;IAFC,eAAe;IACf,WAAY;IAGd;;;;;;SAMK;IACL,cAEC;CACF;AAED;;;;;;GAMG;AACH;IACE,kDAIC;IAFC,eAAe;IACf,kBAAyB;IAG3B;;;;SAIK;IACL,gBAFe,IAAI,CAKlB;IAFC,cAAqB;IAIvB;;;;SAIK;IACL,cAHiB,GAAG,KACL,IAAI,CAKlB;IAED,+BAMC;CACF;AA3ID;;;;GAIG;AACH;IACE,mCAKC;IAJC,eAAe;IACf,iBAAuB;IACvB,eAAe;IACf,YAAa;IAGf,eAAe;IACf,cAGC;IAED;;;;;OAKG;IACH,eAFa,WAAW,gBAAgB,CASvC;IAED;;;;;;QAMI;IACJ,sBAHY,MAAM,GACJ,sBAAsB,CAKnC;IAFC,kCAA2D;CAG9D"} \ No newline at end of file +{"version":3,"file":"condition-builder.d.ts","sourceRoot":"","sources":["../../src/rules/condition-builder.js"],"names":[],"mappings":"AAsEA;;;;;;GAMG;AACH;IACE;;;;SAIK;IACL,4CAIC;IAFC,eAAe;IACf,WAAY;IAGd;;;;;;SAMK;IACL,cAEC;CACF;AAED;;;;;;GAMG;AACH;IACE,kDAIC;IAFC,eAAe;IACf,kBAAyB;IAG3B;;;;SAIK;IACL,gBAFe,IAAI,CAKlB;IAFC,cAAqB;IAIvB;;;;SAIK;IACL,cAHiB,GAAG,KACL,IAAI,CAKlB;IAED,+BAMC;CACF;AA3ID;;;;GAIG;AACH;IACE,mCAKC;IAJC,eAAe;IACf,iBAAuB;IACvB,eAAe;IACf,YAAa;IAGf,eAAe;IACf,cAGC;IAED;;;;;OAKG;IACH,gBAFa,WAAW,gBAAgB,CASvC;IAED;;;;;;QAMI;IACJ,sBAHY,MAAM,GACJ,sBAAsB,CAKnC;IAFC,kCAA2D;CAG9D"} \ No newline at end of file diff --git a/types/rules/trigger-builder.d.ts b/types/rules/trigger-builder.d.ts index 2ebf13c95..ab64a943c 100644 --- a/types/rules/trigger-builder.d.ts +++ b/types/rules/trigger-builder.d.ts @@ -319,10 +319,10 @@ declare class TriggerConf { /** * Move to the rule operations * - * @param {*} fn the optional function to execute + * @param {*} [fn] the optional function to execute * @returns {operations.OperationBuilder} */ - then(fn: any): operations.OperationBuilder; + then(fn?: any): operations.OperationBuilder; /** * Move to the rule condition * diff --git a/types/rules/trigger-builder.d.ts.map b/types/rules/trigger-builder.d.ts.map index 4ecb7bde9..5b2bc4232 100644 --- a/types/rules/trigger-builder.d.ts.map +++ b/types/rules/trigger-builder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"trigger-builder.d.ts","sourceRoot":"","sources":["../../src/rules/trigger-builder.js"],"names":[],"mappings":"AAgNA;;;;;;GAMG;AACH;IACE,+CAUC;IARC,eAAe;IACf,gBAAsB;IACtB,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,sBAAsE;IACtE,eAAe;IACf,iBAAgG;CAEnG;AAnED;;;;GAIG;AACH;IACE,mDAIC;IAFC,iBAA8B;IAC9B,mCAA2F;IAG7F,eAAe;IACf,iBAMC;IAED;;;;;OAKG;IACH,cAHW,MAAM,GACJ,oBAAoB,CAIhC;IAED;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,oBAAoB,CAKhC;IAFC,kBAAgC;IAIlC,eAAe;IACf,kBAEC;CACF;AA4CD;;;;;;GAMG;AACH;IACE,gEAYC;IAVC,aAAyC;IAKzC,eAAe;IACf,kBAA2B;IA8G7B,eAAe;IACf,iBA6BC;IAzIC,oBAOW,iBAAiB,CAPX;IAGnB;;;;;OAKG;IACH,gBAFa,iBAAiB,CAK7B;IAFC,cAAqB;IAIvB;;;;OAIG;IACH,kBAFa,iBAAiB,CAQ7B;IAFC,gBAAuB;IAIzB;;;;OAIG;IACH,SAFa,iBAAiB,CAI7B;IAED;;;;OAIG;IACH,QAFa,iBAAiB,CAI7B;IAED;;;;OAIG;IACH,WAFa,iBAAiB,CAI7B;IAED;;;;OAIG;IACH,UAFa,iBAAiB,CAI7B;IAED;;;;OAIG;IACH,mBAFa,iBAAiB,CAK7B;IAFC,gBAAgC;IAIlC;;;;OAIG;IACH,kBAFa,iBAAiB,CAK7B;IAED;;;;OAIG;IACH,WAFa,iBAAiB,CAK7B;IAED;;;;OAIG;IACH,oBAFa,iBAAiB,CAI7B;IAED,eAAe;IACf,kBAE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,gBAHW,MAAM,GACJ,kBAAkB,CAI9B;IAED;;;;;OAKG;IACH,UAFa,mBAAmB,CAI/B;IAED;;;;;OAKG;IACH,mBAHW,MAAM,GACJ,qBAAqB,CAIjC;CACF;AAED;;;GAGG;AACH;IACE,iCAGC;IAFC,eAAe;IACf,uBAAoC;IAGtC;;;;OAIG;IACH,MAFa,cAAc,CAI1B;IAED;;;;;OAKG;IACH,eAFa,WAAW,gBAAgB,CAIvC;IAED;;;;;OAKG;IACH,aAFa,WAAW,gBAAgB,CAIvC;CACF;AAuED;;;;;;GAMG;AACH;IACE,+CAUC;IARC,eAAe;IACf,gBAAsB;IACtB,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,sBAAoE;IACpE,eAAe;IACf,iBAA4G;CAE/G;AA6XD;;;;;;GAMG;AACH;IACE,gDAYC;IAVC,eAAe;IACf,kBAAyB;IACzB,eAAe;IACf,kBAAsB;IACtB,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,sBAAqF;IACrF,eAAe;IACf,iBAAwJ;IAG1J;;;;;OAKG;IACH,oBAHW,OAAO,GACL,qBAAqB,CAKjC;CACF"} \ No newline at end of file +{"version":3,"file":"trigger-builder.d.ts","sourceRoot":"","sources":["../../src/rules/trigger-builder.js"],"names":[],"mappings":"AAgNA;;;;;;GAMG;AACH;IACE,+CAUC;IARC,eAAe;IACf,gBAAsB;IACtB,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,sBAAsE;IACtE,eAAe;IACf,iBAAgG;CAEnG;AAnED;;;;GAIG;AACH;IACE,mDAIC;IAFC,iBAA8B;IAC9B,mCAA2F;IAG7F,eAAe;IACf,iBAMC;IAED;;;;;OAKG;IACH,cAHW,MAAM,GACJ,oBAAoB,CAIhC;IAED;;;;;OAKG;IACH,qBAHW,MAAM,GACJ,oBAAoB,CAKhC;IAFC,kBAAgC;IAIlC,eAAe;IACf,kBAEC;CACF;AA4CD;;;;;;GAMG;AACH;IACE,gEAYC;IAVC,aAAyC;IA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