This change should allow typescript projects using this plugin in Nightwatch to add "types": ["@nightwatch/apitesting"], to their tsconfig.json to add the .supertest type to the Nightwatch API when writing their tests
Traditionally, the type file is at the same level of index.js, but in some examples I've seen for Nightwatch plugins the types were under /nightwatch/types/<typefilehere> so that is why I went with that placement.
This change should allow typescript projects using this plugin in Nightwatch to add
"types": ["@nightwatch/apitesting"],
to their tsconfig.json to add the .supertest type to the Nightwatch API when writing their testsTraditionally, the type file is at the same level of index.js, but in some examples I've seen for Nightwatch plugins the types were under
/nightwatch/types/<typefilehere>
so that is why I went with that placement.