flash-oss / node_acl

Access control lists for node applications
MIT License
63 stars 9 forks source link

How can I import in Typescript ES6? #16

Closed hwooo closed 1 year ago

hwooo commented 1 year ago
import * as ACL from 'acl2';

pic1

npm install acl2 has successfully finished but I can't import the module. Every examples in repository are written in ES5 grammar. How can I use it in TypeScript ES6?

koresar commented 1 year ago

TypeScript usage:

var ACL: any = require("acl2");

Tell me how it goes.