🚧Setup
This section is useful if you want to use BitfieldProvider
. If you only want to use the permission models, this is not necessary
To use this library, you can choose between two methods. If your project supports NestJs injection, you can choose to inject the client or simply use it via a classic import in a project without injection.
With NestJs injection
In the desired module, you must import BitfieldManagerModule
.
import { BitfieldManagerModule } from '@monordo/bitfield-permission-manager';
@Module({
imports: [BitfieldManagerModule]
})
export class AppModule {}
Without NestJs injection
import { vidalClient } from '@monordo/bitfield-permission-manager';
(async () => {
const manager = await bitfieldPermissionManager();
})();
Last updated