Skip to content

Typescript definitions not generated correctly #1012

@liviuignat

Description

@liviuignat

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:

whatsapp image 2018-04-01 at 16 06 12

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions