def Ty.bool

bend-kube-runtime@0.2.0.0 · src/typed.bend:36

import bend-kube-runtime@0.2.0.0/src/typed.bend as Typed
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

36def Ty.bool(j: J.Json, path: String) -> Result<&2, &2, String, Bool>:
37  match j:
38    case J.JBool{b}:
39      Done{b}
40    case _:
41      Fail{path ++ ": expected a boolean"}

Uses (5)

Used by (0)

No other definition uses this definition.