Skip to content

Commit

Permalink
Add doc comments to shiftBy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Jun 28, 2023
1 parent 3ff3ad4 commit 5c612d8
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -868,6 +873,11 @@ export class Discrete<Schema> {
});
}

/**
* Shifts the profile forward or backward in time.
*
* @param duration duration shift each segment (can be negative)
*/
public shiftBy(duration: Temporal.Duration): Discrete<Schema> {
return new Discrete<Schema>({
kind: AST.NodeKind.ProfileExpressionShiftBy,
Expand Down Expand Up @@ -1336,6 +1346,11 @@ declare global {
*/
public valueAt(timepoint: Spans): Discrete<number>;

/**
* Shifts the profile forward or backward in time.
*
* @param duration duration shift each segment (can be negative)
*/
public shiftBy(duration: Temporal.Duration): Real;
}

Expand Down Expand Up @@ -1426,6 +1441,11 @@ declare global {
*/
public valueAt(timepoint: Spans): Discrete<Schema>;

/**
* Shifts the profile forward or backward in time.
*
* @param duration duration shift each segment (can be negative)
*/
public shiftBy(duration: Temporal.Duration): Discrete<Schema>;
}

Expand Down

0 comments on commit 5c612d8

Please sign in to comment.