ES6 import syntax
Closed this issue · 3 comments
dagovalsusa commented
in a TS project
import acl from 'express-acl';
and also
import * as acl from 'express-acl';
return error "declaration file not found"
nyambati commented
@dagovalsusa This is because this module does not include Typescript declarations types
dagovalsusa commented
So, can I not use the ES6 syntax?
Are you planning to insert it, or can you tell me how I can do it?
Thanks
nyambati commented
You can add a file called express-acl.d.ts
on your project and add this code declare module 'express-acl'
. This should fix your issue.