@legit-sdk/core 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -584,7 +584,10 @@ declare function openLegitFsWithMemoryFs(props?: Parameters<typeof openLegitFs>[
584
584
  *
585
585
  * @param legitArchieve a zlib compressed legit repo
586
586
  */
587
- loadArchive: (legitArchieve: Uint8Array) => Promise<void>;
587
+ loadArchive: ({ legitArchive: legitArchive, clearExisting, }: {
588
+ legitArchive: Uint8Array;
589
+ clearExisting?: boolean;
590
+ }) => Promise<void>;
588
591
  /**
589
592
  * creates a legit archieve - a compressed representation of the legit repo (the .git folder in the storage fs)
590
593
  *
@@ -632,7 +635,10 @@ declare function openLegitFs({ storageFs, gitRoot, anonymousBranch, showKeepFile
632
635
  *
633
636
  * @param legitArchieve a zlib compressed legit repo
634
637
  */
635
- loadArchive: (legitArchieve: Uint8Array) => Promise<void>;
638
+ loadArchive: ({ legitArchive: legitArchive, clearExisting, }: {
639
+ legitArchive: Uint8Array;
640
+ clearExisting?: boolean;
641
+ }) => Promise<void>;
636
642
  /**
637
643
  * creates a legit archieve - a compressed representation of the legit repo (the .git folder in the storage fs)
638
644
  *