I may be missing something, but your example doesn't typecheck? class Animal { } class Dog extends Animal{ bark(){return 1} } class Cat extends Animal{ bark(){return 1} } const dogs: Dog[] = [] const animals: Animal[] =…
fun project!
this is cool! i'd recommend fleshing out the README. Clicked on the link before the discussion and was a tad confused.
I really enjoyed reading this article however I can't help but feeling that if you need anything described within it probably shouldn't be writing JS in the first place
I may be missing something, but your example doesn't typecheck? class Animal { } class Dog extends Animal{ bark(){return 1} } class Cat extends Animal{ bark(){return 1} } const dogs: Dog[] = [] const animals: Animal[] =…
fun project!
this is cool! i'd recommend fleshing out the README. Clicked on the link before the discussion and was a tad confused.
I really enjoyed reading this article however I can't help but feeling that if you need anything described within it probably shouldn't be writing JS in the first place