( schema: Schema.ConstraintCodec<A, I, RD, unknown>, options?: ParseOptions | undefined )
| 531 | * @since 4.0.0 |
| 532 | */ |
| 533 | export const schemaPathParams = <A, I extends Readonly<Record<string, string | undefined>>, RD>( |
| 534 | schema: Schema.ConstraintCodec<A, I, RD, unknown>, |
| 535 | options?: ParseOptions | undefined |
| 536 | ): Effect.Effect<A, Schema.SchemaError, RouteContext | RD> => { |
| 537 | const parse = Schema.decodeUnknownEffect(schema) |
| 538 | return Effect.flatMap(params, (_) => parse(_, options)) |
| 539 | } |
| 540 | |
| 541 | /** |
| 542 | * Creates a layer that accesses the current `HttpRouter` service and runs the |