From 5c612d8181982524b1099f58627ac20ae22211a7 Mon Sep 17 00:00:00 2001 From: JoelCourtney Date: Wed, 28 Jun 2023 13:31:10 -0700 Subject: [PATCH] Add doc comments to shiftBy --- .../src/libs/constraints-edsl-fluent-api.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/merlin-server/constraints-dsl-compiler/src/libs/constraints-edsl-fluent-api.ts b/merlin-server/constraints-dsl-compiler/src/libs/constraints-edsl-fluent-api.ts index aef79b2008..db5b907ecf 100644 --- a/merlin-server/constraints-dsl-compiler/src/libs/constraints-edsl-fluent-api.ts +++ b/merlin-server/constraints-dsl-compiler/src/libs/constraints-edsl-fluent-api.ts @@ -699,6 +699,11 @@ export class Real { }); } + /** + * Shifts the profile forward or backward in time. + * + * @param duration duration shift each segment (can be negative) + */ public shiftBy(duration: Temporal.Duration): Real { return new Real({ kind: AST.NodeKind.ProfileExpressionShiftBy, @@ -868,6 +873,11 @@ export class Discrete { }); } + /** + * Shifts the profile forward or backward in time. + * + * @param duration duration shift each segment (can be negative) + */ public shiftBy(duration: Temporal.Duration): Discrete { return new Discrete({ kind: AST.NodeKind.ProfileExpressionShiftBy, @@ -1336,6 +1346,11 @@ declare global { */ public valueAt(timepoint: Spans): Discrete; + /** + * Shifts the profile forward or backward in time. + * + * @param duration duration shift each segment (can be negative) + */ public shiftBy(duration: Temporal.Duration): Real; } @@ -1426,6 +1441,11 @@ declare global { */ public valueAt(timepoint: Spans): Discrete; + /** + * Shifts the profile forward or backward in time. + * + * @param duration duration shift each segment (can be negative) + */ public shiftBy(duration: Temporal.Duration): Discrete; }