Skip to content

tychota/fp-ts-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test FP-TS

A playground to test gcanti's super article.

Use case

Sentinels

Use case: an API that may fail and returns a special value of the codomain

undefined and null

Use case: an API that may fail and returns undefined (or null)

Exceptions

Use case: an API that may throw

Random values

Use case: an API that returns a non deterministic value

Synchronous side effects

Use case: an API that reads and/or writes to a global state

Use case: an API that reads and/or writes to a global state and may throw

Asynchronous side effects

Use case: an API that performs an asynchronous computation

  • Code
  • ⚠️ I don't know how to test this, help me please :)

Use case: an API that performs an asynchronous computation and may reject

Releases

No releases published

Packages

No packages published