nyambati/express-acl

ES6 import syntax

Closed this issue · 3 comments

in a TS project

import acl from 'express-acl';

and also

import * as acl from 'express-acl';

return error "declaration file not found"

@dagovalsusa This is because this module does not include Typescript declarations types

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

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.