(value: Value)
| 5877 | * @since 3.10.0 |
| 5878 | */ |
| 5879 | export function Redacted<Value extends Schema.Any>(value: Value): Redacted<Value> { |
| 5880 | return transform( |
| 5881 | value, |
| 5882 | RedactedFromSelf(typeSchema(asSchema(value))), |
| 5883 | { |
| 5884 | strict: true, |
| 5885 | decode: (i) => redacted_.make(i), |
| 5886 | encode: (a) => redacted_.value(a) |
| 5887 | } |
| 5888 | ) |
| 5889 | } |
| 5890 | |
| 5891 | /** |
| 5892 | * @category Duration constructors |
nothing calls this directly
no test coverage detected
searching dependent graphs…