electron-playwright-helpers icon indicating copy to clipboard operation
electron-playwright-helpers copied to clipboard

Typo in main example???

Open steve981cr opened this issue 2 years ago • 4 comments

The Readme includes a JavaScript example line:

let electronApp: ElectronApplication

I've never seen that kind of syntax for a variable declaration and when I use it my linter shows an error so I'm assuming that's a typo.

steve981cr avatar Apr 27 '23 23:04 steve981cr

It's Typescript. I'm defining the variable scope and type.

jjeff avatar Apr 27 '23 23:04 jjeff

Oh, got it. Thanks.

steve981cr avatar Apr 27 '23 23:04 steve981cr

Yeah. That's in the Javascript section of the docs. I'll fix it.

Thanks for the note!

jjeff avatar Apr 27 '23 23:04 jjeff

In the meantime, just change to:

let electronApp

jjeff avatar Apr 27 '23 23:04 jjeff