# restoreSnapshot

`import { restoreSnapshot } from "destack:runtime";`

Restore one world from one snapshot.

```ds title="restoreSnapshot"
export declare function restoreSnapshot(world: WorldHandle, snapshotId: SnapshotId): Result<void, HostError>
```

[language/library/src/runtime/snapshot.ds:130:133](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/snapshot.ds#L130-L133)
