What are you trying to achieve?
Generate typescript definitions
What do you get instead?
- Typescript definition file is not generated correctly. Please see the image bellow, where multiple functions definitions are not correct:

Sugestions:
- add tests to see that definitions are generated correctly
- having
.d.ts files in your project directly are not the preffered way anymore, rather having a module @types/codeceptjs
- please add more types to functions, most of them use
any
Command used: codeceptjs def .
Details
- CodeceptJS version: 1.1.7
- NodeJS Version: 8.11.0
- Operating System: MacOS
- WebDriverIO
- Configuration file:
{
"bootstrap": "server.typescript.js",
"tests": "src/*/.test.ts",
"timeout": 10000,
"output": "./output",
"helpers": {
"WebDriverIO": {
"url": "http://localhost",
"browser": "chrome",
"restart": true
}
},
"include": {
"I": "./steps_file.js"
},
"mocha": {},
"name": "codecept"
}
What are you trying to achieve?
Generate typescript definitions
What do you get instead?
Sugestions:
.d.tsfiles in your project directly are not the preffered way anymore, rather having a module@types/codeceptjsanyCommand used:
codeceptjs def .Details
{ "bootstrap": "server.typescript.js", "tests": "src/*/.test.ts", "timeout": 10000, "output": "./output", "helpers": { "WebDriverIO": { "url": "http://localhost", "browser": "chrome", "restart": true } }, "include": { "I": "./steps_file.js" }, "mocha": {}, "name": "codecept" }