Skip to content

Conversation

@mxschmitt
Copy link
Contributor

Fixes #6896

@mxschmitt mxschmitt requested a review from dgozman June 4, 2021 21:25
exports.PlaywrightDevPage = class PlaywrightDevPage {
constructor(page: Page) {
constructor(page) {
/** @type {import('playwright').Page} */
Copy link
Contributor

Choose a reason for hiding this comment

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

Just drop this line. JS means no types!

@mxschmitt mxschmitt merged commit 334096e into microsoft:master Jun 7, 2021
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.

[BUG] Syntax error in JS Page Object Model Example https://playwright.dev/docs/next/test-pom

2 participants