( impl: Omit<Clipboard, "clear" | "writeBlob" | TypeId> )
| 67 | * @category constructor |
| 68 | */ |
| 69 | export const make = ( |
| 70 | impl: Omit<Clipboard, "clear" | "writeBlob" | TypeId> |
| 71 | ): Clipboard => |
| 72 | Clipboard.of({ |
| 73 | ...impl, |
| 74 | [TypeId]: TypeId, |
| 75 | clear: impl.writeString(""), |
| 76 | writeBlob: (blob: Blob) => impl.write([new ClipboardItem({ [blob.type]: blob })]) |
| 77 | }) |
| 78 | |
| 79 | /** |
| 80 | * A layer that directly interfaces with the navigator.clipboard api |
no test coverage detected