Skip to content

Conversation

@DenysKuchma
Copy link
Collaborator

@DenysKuchma DenysKuchma commented Jan 19, 2026

Changed type generation for .js page objects to use .default accessor (dot notation) instead of removing it completely. This allows TypeScript to extract properties from plain object exports
while maintaining compatibility with custom helpers.

Key change: Check originalPath.endsWith('.js') before getPath() processing, then use dot notation: typeof import('./file.js').default

#5363

@DenysKuchma DenysKuchma requested a review from DavertMik January 19, 2026 13:21
@DavertMik DavertMik merged commit 95c56ae into 4.x Jan 20, 2026
10 checks passed
@DavertMik DavertMik deleted the fix/5363-page-object-autocompletion branch January 20, 2026 01:03
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