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

Class Plain

packages/effect/test/ui/Query.test.ts:1352–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350 // What the drop leaves is handed on as it was defined, and args that lose nothing are handed on themselves.
1351 const seen: Array<unknown> = []
1352 class Plain extends Query.Service<Plain>()("Plain", {
1353 ...options,
1354 args: Schema.Struct({
1355 id: Schema.String,
1356 page: Schema.optional(Schema.Number)
1357 }).check(
1358 Schema.makeFilter((args) => {
1359 seen.push(args)
1360 return true
1361 })
1362 )
1363 }) {
1364 static readonly layer = this.toLayer(fetcher)
1365 }
1366 const thrown = <R>(get: Effect.Effect<number, never, R>) =>
1367 Effect.map(
1368 Effect.exit(get),

Callers 6

Redacted.test.tsFile · 0.70
Slots.tst.tsFile · 0.50
Send.tst.tsFile · 0.50
Headless.test.tsFile · 0.50
vaultFunction · 0.50
makeFunction · 0.50

Calls 4

optionalMethod · 0.80
checkMethod · 0.65
pushMethod · 0.65
toLayerMethod · 0.65

Tested by 2

vaultFunction · 0.40
makeFunction · 0.40