Skip to content

Conversation

@DenysKuchma
Copy link
Collaborator

Problem

TypeScript cannot import container in ESM: #5320

Solution

Added named export in typings/index.d.ts

@DenysKuchma DenysKuchma requested a review from DavertMik January 13, 2026 15:00
Copy link
Contributor

@DavertMik DavertMik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also can we list all other things we can export from codeceptjs?

like output, recorder, etc?

Like listed here https://codecept.io/internal-api/#concepts


declare module 'codeceptjs' {
export default codeceptjs
export const container: any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a type for container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants