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 types not available #20

Open
grempe opened this issue Sep 10, 2021 · 1 comment
Open

Typescript types not available #20

grempe opened this issue Sep 10, 2021 · 1 comment

Comments

@grempe
Copy link

grempe commented Sep 10, 2021

The package.json file specifies that Typescript types can be found at dist/index.d.ts as specified here:

https://github.com/SkeLLLa/fast-rbac/blob/master/package.json#L27

However, in the published NPM package there is no such file.

I was able to get the import working in a Typescript file (destined to a Cloudflare Worker) by specifying the following import:

import RBAC from 'fast-rbac/dist/browser'

It would be helpful, if this is the intended import method, if this was documented. package.json should also reflect this as needed.

@SkeLLLa
Copy link
Owner

SkeLLLa commented Sep 16, 2021

Thanks. There were missing line in ts config. Should be fixed in 2.0.1.

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

2 participants