Fixed definition signatures to pass npm test