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 import issue/question #25

Open
DmytroSokhach opened this issue Sep 15, 2020 · 0 comments
Open

TypeScript import issue/question #25

DmytroSokhach opened this issue Sep 15, 2020 · 0 comments

Comments

@DmytroSokhach
Copy link

Guys, can someone help me figure out how do I correctly import this in TypeScript (or ES6 syntax)

var Nightmare = require('Nightmare');
require('nightmare-download-manager')(Nightmare);

I tried with this article https://www.exratione.com/2015/12/es6-use-of-import-property-from-module-is-not-a-great-plan/ to understand how to convert, however did not succeed.

Any advice appreciated.

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