gabrielfv
07/03/2018, 7:50 PMtypealias SourceOrFactory<T> = List<T> | DataSource.Factory<T>
codyoss
07/03/2018, 7:54 PMwhen
to check the typegabrielfv
07/03/2018, 8:03 PMLuke
07/03/2018, 8:06 PMAndreas Sinz
07/03/2018, 8:10 PMgabrielfv
07/03/2018, 8:14 PMSourceOrFactory<T>
, if I tried to override it returning something that wasn't either List<T>
or DataSource.Factory<T>
it could be caught as an error.gabrielfv
07/03/2018, 8:15 PMAndreas Sinz
07/03/2018, 8:16 PMsealed class
gabrielfv
07/03/2018, 8:17 PMkarelpeeters
07/03/2018, 8:54 PMEither
class.gabrielfv
07/03/2018, 8:55 PMgabrielfv
07/03/2018, 8:56 PMgabrielfv
07/03/2018, 8:57 PMkarelpeeters
07/03/2018, 8:57 PMmaxmello
07/03/2018, 9:32 PMkarelpeeters
07/03/2018, 9:33 PMEither<Result, Error>
maxmello
07/03/2018, 9:42 PMkarelpeeters
07/03/2018, 9:44 PMT? == Either<T, Unit>