Skip to content

Typescript types not available #20

@grempe

Description

@grempe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions