( schema: Schema.Schema<A, I, R>, options?: ParseOptions | undefined )
| 327 | * @category schema |
| 328 | */ |
| 329 | export const schemaStruct = <A, I extends Record<string, string | ReadonlyArray<string> | undefined>, R>( |
| 330 | schema: Schema.Schema<A, I, R>, |
| 331 | options?: ParseOptions | undefined |
| 332 | ) => |
| 333 | (self: UrlParams): Effect.Effect<A, ParseResult.ParseError, R> => { |
| 334 | const parse = Schema.decodeUnknown(schema, options) |
| 335 | return parse(toRecord(self)) |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * @since 1.0.0 |