Skip to content

Commit 9acbd9a

Browse files
committed
Add OverlayDevice reference
1 parent 22bbe20 commit 9acbd9a

File tree

1 file changed

+18
-0
lines changed
  • sites/cheerpx/src/content/docs/12-reference/CheerpX.OverlayDevice

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: create
3+
description: Virtual filesystems and how to use them
4+
---
5+
6+
```ts
7+
namespace CheerpX {
8+
class OverlayDevice {
9+
static async create(baseDevice: Device, overlayDevice: Device): Promise<OverlayDevice>;
10+
}
11+
}
12+
```
13+
14+
## Parameters
15+
16+
- **baseDevice (`Device`)** - The underlying device (e.g., `HttpBytesDevice`, `IDBDevice`) that serves as the base layer for the filesystem.
17+
18+
- **overlayDevice (`Device`)** - The writable layer that will overlay the base device, enabling persistent changes.

0 commit comments

Comments
 (0)