Closed unional closed 8 years ago
Huh, yeah, that's a tricky one. I think we can just use augmentation here, to add the interface to the same class.
Ok, agreed. Very likely no user would use both blue-tape
and tape
at the same time. Doesn't make sense to do so. :stuck_out_tongue:
Then that means we have to wait for the tsc
to fix the augmentation bug. :rose:
There's no augmentation bug here, is there? It works fine. And actually, check out the blue-tape
source - they actually augment it 😉 I was going to say this is impossible, but then I saw they did it and so, so can we 😝.
Yeah, I just tested it. It works. Big PR on the way. :stuck_out_tongue_winking_eye:
First commit was an error. Somehow git branch ...
on vscode doesn't work on this instance (maybe I accidentally added a space in) and cause the code committed to master.
Reverted and force push to fix master.
https://github.com/spion/blue-tape
t.shouldFail(promise P, optional class C)
Seems like I have to replicate most of the
tape
interface. Any better idea?