From c7437d20edf36ac36f29b381feb1e1b700f8bcb8 Mon Sep 17 00:00:00 2001 From: JoelCourtney Date: Mon, 4 Dec 2023 14:03:19 -0800 Subject: [PATCH] Replace .ofType with .build --- docs/scheduling/goals.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/scheduling/goals.mdx b/docs/scheduling/goals.mdx index ac7c0de..a4ae875 100644 --- a/docs/scheduling/goals.mdx +++ b/docs/scheduling/goals.mdx @@ -21,10 +21,11 @@ ActivityExpression.ofType(ActivityTypes.ParamActivity); In this case, all the activities of type `ParamActivity` will be matched (disregarding its parameters) and potentially used for satisfying the goal. ```ts -ActivityExpression.ofType(ActivityTypes.ParamActivity, { param: 1 }); +ActivityExpression.build(ActivityTypes.ParamActivity, { param: 1 }); ``` -In this case, all the activities of type `ParamActivity` with parameter `param` equal to 1 will be matched and used for satisfying the goal. +In this case, all the activities of type `ParamActivity` with parameter `param` equal to 1 will be matched and used for satisfying the goal. To do this, you must use the `.build` +function instead of `.ofType`. An optional `ActivityExpression` can be passed with the `activityFinder` parameter of goals. See below for examples of its use in goals.