MCPcopy Create free account
hub / github.com/microsoft/SandDance / downloadSnapshotsJSON

Function downloadSnapshotsJSON

packages/sanddance-app/src/snapshots.tsx:33–37  ·  view source on GitHub ↗
(snapshots: SandDance.types.Snapshot[], filename: string)

Source from the content-addressed store, hash-verified

31}
32
33export function downloadSnapshotsJSON(snapshots: SandDance.types.Snapshot[], filename: string) {
34 //clean prior to exporting
35 const clean = cleanSnapshots(snapshots);
36 downloadData(JSON.stringify(clean, null, 2), filename);
37}
38
39export function serializeSnapshot(snapshotWithImage: SandDance.types.Snapshot) {
40 const snapshot = util.clone(snapshotWithImage) as DataSourceSnapshot;

Callers 1

renderMethod · 0.90

Calls 2

downloadDataFunction · 0.90
cleanSnapshotsFunction · 0.70

Tested by

no test coverage detected