Skip to content

Commit

Permalink
feat(di): Add DISettings class
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Aug 7, 2019
1 parent 247dc6a commit 6c69912
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 277 deletions.
6 changes: 4 additions & 2 deletions packages/common/src/config/interfaces/IServerSettings.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Env} from "@tsed/core";
import {ProviderScope} from "@tsed/di";
import {IDISettings, ProviderScope} from "@tsed/di";
import * as Https from "https";

/**
Expand Down Expand Up @@ -81,7 +81,7 @@ export interface IRouterSettings {
strict?: boolean;
}

export interface IServerSettings {
export interface IServerSettings extends IDISettings {
/**
* The root directory where you build run project. By default, it's equal to `process.cwd().
*/
Expand Down Expand Up @@ -159,6 +159,8 @@ export interface IServerSettings {
*
* - Default: `singleton`. See [Scope](/docs/injection-scopes.md).
* - Values: `singleton`, `request`.
*
* @deprecated Use scopes["CONTROLLER"] instead.
*/
controllerScope?: ProviderScope;
/**
Expand Down
Loading

0 comments on commit 6c69912

Please sign in to comment.