Sha256: 09999f22bb1394dd44c7d9cd7c48abecdfa4e724af0ad475e30181ff1c094bd2
Contents?: true
Size: 578 Bytes
Versions: 5
Compression:
Stored size: 578 Bytes
Contents
# typed: true module Mangrove # Result is a type that represents either success (`Ok`) or failure (`Err`). module Result class Err class << self sig { type_parameters(:ErrType).params(inner: T.type_parameter(:ErrType)).returns(Mangrove::Result::Err[T.type_parameter(:ErrType)]) } def new(inner); end end end class Ok class << self sig { type_parameters(:OkType).params(inner: T.type_parameter(:OkType)).returns(Mangrove::Result::Ok[T.type_parameter(:OkType)]) } def new(inner); end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mangrove-0.35.0 | rbi/mangrove.rbi |
mangrove-0.34.0 | rbi/mangrove.rbi |
mangrove-0.31.0 | rbi/mangrove.rbi |
mangrove-0.30.1 | rbi/mangrove.rbi |
mangrove-0.30.0 | rbi/mangrove.rbi |