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

TypeScript Support #42

Open
christian-bromann opened this issue Apr 3, 2024 · 0 comments
Open

TypeScript Support #42

christian-bromann opened this issue Apr 3, 2024 · 0 comments

Comments

@christian-bromann
Copy link

Currently the command line tool has no type support. It would be nice if we could provide a minimal type definition so we can do this in TypeScript without having any type errors thrown:

import allure from 'allure-commandline'
const generation = allure(['generate', 'allure-results'])
return new Promise<void>((resolve, reject) => {
  const generationTimeout = setTimeout(
    () => reject(new Error('Could not generate Allure report')),
    5000)

  generation.on('exit', function() {
    clearTimeout(generationTimeout)
    console.log('Allure report successfully generated')
    resolve()
  })
})
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

No branches or pull requests

1 participant