@nestjs-kitchen/connextion
v1.0.1
Published
A module builder of generic instance management in NextJS.
Downloads
122
Maintainers
Readme
@nestjs-kitchen/connextion
A module builder of generic instance management in NextJS.
Install
$ npm install --save @nestjs-kitchen/connextion
Usage
import { defineConnextionBuilder, ConnextionInstance } from '@nestjs-kitchen/connextion';
class CustomInstance extends ConnextionInstance<{}> {
// ...
}
const defineCustomInstanceManager = defineConnextionBuilder({
connextionName: 'CustomInstanceManager',
InstanceClass: CustomInstance,
});
const {
// Services for injection to manage CustomInstances.
CustomInstanceManager,
// Module for registering instances .
CustomInstanceManagerModule
} = defineCustomInstanceManager();
License
MIT License