rmapi-js
    Preparing search index...

    Type Alias SyncProgress

    SyncProgress:
        | {
            discovered: number;
            last?: string;
            loaded: number;
            stage: "fetching";
            total: number;
        }
        | {
            sent: number;
            sentBytes: number;
            stage: "sending";
            total: number;
            totalBytes: number;
        }

    the progress a sync reports as it runs

    Type Declaration

    • {
          discovered: number;
          last?: string;
          loaded: number;
          stage: "fetching";
          total: number;
      }
      • discovered: number

        the items at a state this device has not seen

      • Optionallast?: string

        the item just read or skipped, for the progress after its read

      • loaded: number

        the items read or skipped so far

      • stage: "fetching"

        reading the account

      • total: number

        the items in the account

    • {
          sent: number;
          sentBytes: number;
          stage: "sending";
          total: number;
          totalBytes: number;
      }
      • sent: number

        the files sent so far

      • sentBytes: number

        the bytes of the files sent so far

      • stage: "sending"

        sending queued edits

      • total: number

        the files the write sends

      • totalBytes: number

        the bytes of the files the write sends