@borshch/utilities v2.3.0
Borshch Utilities
Several utilities used in borshch components
!CAUTION package have no typings, so may have troubles with integration to TS projects. Didn't check yet.
!CAUTION cjs version is bundled, but has not been tested yet. you are welcome to give feedback or even create PR with a fix. But better stop using cjs. Forever.
Installation
npm i @borshch/utilitiesAtom
State holder. Applies supplied function to current value and uses its result as new value (idea borrowed from Clojure Atom) Usage examples
Deferred
Creates deferred promise that you can manually control resolution and rejection Usage examples
Spy
Spy wrapper for the function allowing to analyze function calls and stub return values. It is extendable, meaning you can customize your spies and reuse them across tests. Usage examples
mixin
Mixes Base class with mixins returning new extendable class. Allows kind of multiple inheritance. Usage examples
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago