This should be already possible, but it will give you a compiler error if you use Typescript. I will add support in the next version.