Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Nov 5, 2024
1 parent 72023cc commit 6e1b8cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/course/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,19 @@ export class CourseApi {
* 2. msg source matches current Destination source
* 3. Destination Position is changed.
*/
private async processV1DestinationDeltas(delta: ValuesDelta) {
private async processV1DestinationDeltas(delta: Delta) {
if (
!Array.isArray(delta.updates) ||
this.cmdSource?.type === 'API' ||
(!this.cmdSource && this.settings.apiOnly)
) {
return
}
delta.updates.forEach((update) => {
if (!Array.isArray(update.values)) {
delta.updates.forEach((update: Update) => {
if (!Array.isArray((update as any).values)) {
return
}
update.values.forEach((pathValue: PathValue) => {
(update as any).values.forEach((pathValue: PathValue) => {
if (
update.source &&
update.source.type &&
Expand Down

0 comments on commit 6e1b8cf

Please sign in to comment.