2 karma · joined Sep 19, 2017 (9y ago) · 1 submissions
comment 9y ago · link · parent
Here's a gist of the type definitions I'm using: https://gist.github.com/noppa/c600cc43fd44e33768efe6c6eec4a9...
I think something similar might work in TS too.
Demo: https://goo.gl/w3aPsw