(schema: S)
| 10 | export type AbsolutePath = typeof AbsolutePath.Type |
| 11 | |
| 12 | export const optional = <S extends Schema.Top>(schema: S) => |
| 13 | Schema.optionalKey(schema).pipe( |
| 14 | Schema.decodeTo(Schema.optional(Schema.toType(schema)), { |
| 15 | decode: SchemaGetter.passthrough({ strict: false }), |
| 16 | encode: SchemaGetter.transformOptional(Option.filter((value) => value !== undefined)), |
| 17 | }), |
| 18 | ) |
| 19 | |
| 20 | export const statics = |
| 21 | <S extends object, M extends Record<string, unknown>>(methods: (schema: S) => M) => |
no outgoing calls
no test coverage detected