( schema: Schema.Schema<A, I, R>, options?: ParseOptions | undefined )
| 64 | |
| 65 | /** @internal */ |
| 66 | export const schemaCookies = <A, I extends Readonly<Record<string, string | undefined>>, R>( |
| 67 | schema: Schema.Schema<A, I, R>, |
| 68 | options?: ParseOptions | undefined |
| 69 | ) => { |
| 70 | const parse = Schema.decodeUnknown(schema, options) |
| 71 | return Effect.flatMap(serverRequestTag, (req) => parse(req.cookies)) |
| 72 | } |
| 73 | |
| 74 | /** @internal */ |
| 75 | export const schemaHeaders = <A, I extends Readonly<Record<string, string | undefined>>, R>( |