rosshinkley / nightmare-inline-download

36 stars 8 forks source link

Using this library with typescript #16

Closed alexbjorlig closed 6 years ago

alexbjorlig commented 6 years ago

Is it possible to use this library with typescript - if so how would you do the import?

alexbjorlig commented 6 years ago

I solved this by doing the following:


import * as Nightmare from 'nightmare';
import * as nightmareInlineDownload from 'nightmare-inline-download';
nightmareInlineDownload(Nightmare);