Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Linter message "this expression is not constructable" #5

Open
imma90 opened this issue Mar 13, 2024 · 0 comments
Open

[QUESTION] Linter message "this expression is not constructable" #5

imma90 opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed pending question Further information is requested

Comments

@imma90
Copy link

imma90 commented Mar 13, 2024

🐞 Describe the question:
In this line

const pageObject = await new PageObjectParam(page);

My editor gives me the lint message: "this expression is not constructable".
If I add a comment // @ts-ignore above it, the test does run.

Is there a clean way to create a dynamic POM that does not give warnings?

@imma90 imma90 added help wanted Extra attention is needed pending question Further information is requested labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed pending question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants