MCPcopy Create free account
hub / github.com/Effect-TS/effect / pick

Function pick

packages/effect/test/ui/html/HtmlFiles.test.ts:101–105  ·  view source on GitHub ↗
(options: HtmlFiles.PickOptions)

Source from the content-addressed store, hash-verified

99 const picker = yield* pickers
100 const context = yield* Layer.build(BrowserHost.layer())
101 const pick = (options: HtmlFiles.PickOptions) =>
102 HtmlFiles.Files.use((files) => files.pick(options)).pipe(
103 Effect.provide(context),
104 Effect.forkChild
105 )
106 const file = new File(["hi"], "notes.txt")
107
108 const chosen = yield* pick({

Callers 1

HtmlFiles.test.tsFile · 0.70

Calls 4

pipeMethod · 0.65
useMethod · 0.65
pickMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected