gritzko / swarm

JavaScript replicated model (M of MVC) library
http://swarmdb.net/
MIT License
2.68k stars 97 forks source link

Experiment adding flowtype #77

Closed andreypopp closed 7 years ago

andreypopp commented 8 years ago

Adds type annotation to LamportTimestamp and Spec. Discuss!

andreypopp commented 8 years ago

It builds on top of es6 branch as it requires babel toolchain and class syntax makes things easier.

andreypopp commented 8 years ago

Other observations:

gritzko commented 8 years ago

I am getting rid of polymorphic APIs gradually, so we agree on that.

VV is nicer than VVector, but it makes no immediate difference, so it got stuck in this state. Reactions can be used by app developers. Swarm.js itself does not use them.