By.js locator should accept functions
By.js locator should accept functions

The Protractor documentation says that By.js is inherited from Selenium Webdriver, and the types for that define the function signature for `js` like I have done in this PR.

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/selenium-webdriver/index.d.ts#L2441
angular/protractor,mgiambalvo/protractor,onshape/protractor,mgiambalvo/protractor,angular/protractor,mgiambalvo/protractor,angular/protractor,angular/protractor,onshape/protractor,cnishina/protractor,cnishina/protractor,cnishina/protractor,mgiambalvo/protractor,onshape/protractor,cnishina/protractor,onshape/protractor