Skip to content

[4.0] Missing helper typings file #5575

Description

@JabX

Hello,

I wanted to try out the new 4.0 version with Typescript, so I ran the npx codeceptjs init command on a fresh project and chose Typescript, and then ran npx codeceptjs def to generate the definition file.

This is the definition file I got :

/// <reference types='codeceptjs' />
type steps_file = typeof import('./tests/custom-steps');

declare namespace CodeceptJS {
  interface SupportObject { I: I, current: any }
  interface Methods extends Playwright {}
  interface I extends ReturnType<steps_file> {}
  namespace Translation {
    interface Actions {}
  }
}

I have two problems with it :

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions