Previous signature prevented to pass the shape constructor as the 2nd parameter.
Closes #24
As part of this Pull Request, I propose to start adding tests for the defintions. In this case, this validates that the fix works with 2 usage scenarii.
I don't know if this impact the final npm distrib, so feel free to remove the related commit if this introduces issues. We can introduce tests later.
Previous signature prevented to pass the shape constructor as the 2nd parameter. Closes #24
As part of this Pull Request, I propose to start adding tests for the defintions. In this case, this validates that the fix works with 2 usage scenarii. I don't know if this impact the final npm distrib, so feel free to remove the related commit if this introduces issues. We can introduce tests later.