(
s: string | number
)
| 128 | |
| 129 | it("toRefinement", () => { |
| 130 | const f = ( |
| 131 | s: string | number |
| 132 | ): Option.Option<string> => (typeof s === "string" ? Option.some(s) : Option.none()) |
| 133 | const isString = Option.toRefinement(f) |
| 134 | |
| 135 | assertTrue(isString("s")) |
no test coverage detected