| 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), |