Function
optionPretty
(value: pretty_.Pretty<A>)
Source from the content-addressed store, hash-verified
| 7145 | ).map(optionDecode) |
| 7146 | |
| 7147 | const optionPretty = <A>(value: pretty_.Pretty<A>): pretty_.Pretty<option_.Option<A>> => |
| 7148 | option_.match({ |
| 7149 | onNone: () => "none()", |
| 7150 | onSome: (a) => `some(${value(a)})` |
| 7151 | }) |
| 7152 | |
| 7153 | const optionParse = |
| 7154 | <A, R>(decodeUnknown: ParseResult.DecodeUnknown<A, R>): ParseResult.DeclarationDecodeUnknown<option_.Option<A>, R> => |
Callers
nothing calls this directly
Tested by
no test coverage detected