feature(core) provide injection of inquirer in transient injectables

This commit is contained in:
Elies Lou
2019-03-05 17:24:52 +01:00
parent 845c5df66f
commit 43b063714b
6 changed files with 47 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
import { Provider, Scope } from '@nestjs/common';
import { INQUIRER } from './inquirer-constants';
const noop = () => {};
export const inquirerProvider: Provider = {
provide: INQUIRER,
scope: Scope.TRANSIENT,
useFactory: noop,
};