(s: string)
| 355 | |
| 356 | type Direction = "asc" | "desc" |
| 357 | const isDirection = (s: string): s is Direction => s === "asc" || s === "desc" |
| 358 | assertSome(pipe("asc", Option.liftPredicate(isDirection)), "asc") |
| 359 | assertNone(pipe("foo", Option.liftPredicate(isDirection))) |
| 360 | assertSome(Option.liftPredicate("asc", isDirection), "asc") |
nothing calls this directly
no outgoing calls
no test coverage detected