( schema: Schema.Schema<A, I, R>, options?: ParseOptions | undefined )
| 134 | |
| 135 | /** @internal */ |
| 136 | export const schemaPathParams = <A, I extends Readonly<Record<string, string | undefined>>, R>( |
| 137 | schema: Schema.Schema<A, I, R>, |
| 138 | options?: ParseOptions | undefined |
| 139 | ) => { |
| 140 | const parse = Schema.decodeUnknown(schema, options) |
| 141 | return Effect.flatMap(RouteContext, (_) => parse(_.params)) |
| 142 | } |
| 143 | |
| 144 | /** @internal */ |
| 145 | export const currentRouterConfig = globalValue( |