0.0.0-alpha.3 • Published 2 years ago
@kozderka/railway v0.0.0-alpha.3
Railway oriented programming in TypeScript
Introduction
Package includes types, interfaces and functions for support of railway oriented programming.
Installation
npm install @kozderka/railway
Documentation
Table of Contents
Success
Type: Object
Properties
tag"success"valueT
Failure
Type: Object
Properties
tag"failure"errorT
Result
success
Parameters
valueT
Returns Success\
failure
Parameters
errorT
Returns Failure\
isSuccess
Parameters
resultResult
Returns boolean
isFailure
Parameters
resultResult
Returns boolean
getValue
Parameters
resultResult\<T, U>
Returns T
map
Parameters
ffunction (any): any
Returns function (any): Success\
chain
Parameters
ffunction (any): any
Returns function (any): any
tee
Parameters
ffunction (any): any