Adds typehint. Closes #28