MCPcopy
hub / github.com/Effect-TS/effect / make

Function make

packages/platform-browser/src/Clipboard.ts:69–77  ·  view source on GitHub ↗
(
  impl: Omit<Clipboard, "clear" | "writeBlob" | TypeId>
)

Source from the content-addressed store, hash-verified

67 * @category constructor
68 */
69export 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

Callers 1

Clipboard.tsFile · 0.70

Calls 2

ofMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected