Open himasimplisafe opened 4 years ago
Need TS support
TS support would be very helpful :)
Is there really no TypeScript support? Could you give us an update on this please?
Will there be TS support?
Is there any update on this?
Indeed Support for TS would be great , any updates regarding TypeScript support?
fyi: You can use jsdoc to get at least some type support:
/* @typedef {import('@playwright/test')} Playwright */
/**
* flow
* @param {Playwright.Page} page
*/
async function helloFlow(page) {
await page.goto(`https://artillery.io/blog/${getRandomSlug()}`);
}
Alternative
fyi: You can use jsdoc to get at least some type support:
/* @typedef {import('@playwright/test')} Playwright */ /** * flow * @param {Playwright.Page} page */ async function helloFlow(page) { await page.goto(`https://artillery.io/blog/${getRandomSlug()}`); }
@HaNdTriX And can work with an existing solution, made entirely with TS + Page Object Model?
Does Artillery has Type script support for custom functions or we need to use only .js files?