funkia / rudolph Goto Github PK
View Code? Open in Web Editor NEWA pure and functional router using classic FRP. Written in TypeScript.
A pure and functional router using classic FRP. Written in TypeScript.
I am aware that hareactive 1.5 is a peer dependency for rudolph.
I was able to keep rudolph working locally by making a tiny tweak to the JavaScript output (note that I only ran a small set of tests against this change). This source maps to line 80 of rudolph.ts in the original source where the fix is to
change:
locationB.push(path);
to:
locationB.newValue(path);
I forked the code and was going to submit this little fix back, but when I edited the .ts file I discovered that it will not compile. The reason is because hareactive only exposes the base class Behavior< A> as the return value of behaviorFromEvent instead of the type that it creates DomEventBehavior< A> or the intermediate type ProducerBehavior< A> which is where newValue() is exposed, so my fix works in JavaScript because that's the object that is really there at runtime, but it won't compile in TypeScript because the derived type is not exposed as the result of this function.
I don't know what designs you have in mind such as if you want behaviorFromEvent to expose the full underlying types or if you have other ideas for how rudolph should work here so I'm sending this to you as an issue instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.