@nest-forge/core 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { INestApplicationContext, INestMicroservice, MiddlewareConsumer, ModuleMetadata, NestApplicationOptions } from '@nestjs/common';
1
+ import { INestApplication, INestApplicationContext, INestMicroservice, MiddlewareConsumer, ModuleMetadata, NestApplicationOptions } from '@nestjs/common';
2
2
  import { ForgeBaseComponent, ForgeController, ForgeModule, ForgeService } from '../architecture';
3
3
  import { NestApplicationContextOptions } from '@nestjs/common/interfaces/nest-application-context-options.interface';
4
4
  import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface';
5
- import { AbstractHttpAdapter, NestApplication } from '@nestjs/core';
5
+ import { AbstractHttpAdapter } from '@nestjs/core';
6
6
  export declare abstract class ForgeExtension {
7
7
  /**
8
8
  * Configures the HTTP adapter to use for the Nest application instance.
@@ -13,7 +13,7 @@ export declare abstract class ForgeExtension {
13
13
  /**
14
14
  * Configures a Nest application instance.
15
15
  */
16
- configureHttpApplication(application: NestApplication): any;
16
+ configureHttpApplication(application: INestApplication): any;
17
17
  /**
18
18
  * Configures the options object for a Nest application instance.
19
19
  */
@@ -1,13 +1,13 @@
1
1
  import { DynamicModule, ForwardReference, INestApplication, INestApplicationContext, MiddlewareConsumer, ModuleMetadata, Type } from '@nestjs/common';
2
2
  import { ForgeApplicationContextOptions, ForgeApplicationOptions, ForgeMicroserviceOptions } from './forge-options.interface';
3
3
  import { ForgeExtension, ForgeExtensionResolvable } from './extensions';
4
- import { AbstractHttpAdapter, ModuleRef, NestApplication } from '@nestjs/core';
4
+ import { AbstractHttpAdapter, ModuleRef } from '@nestjs/core';
5
5
  import { ForgeBaseComponent, ForgeController, ForgeModule, ForgeService } from './architecture';
6
6
  import { FORGE_ROOT_MODULE } from './constants-public';
7
7
  declare class Forge {
8
8
  private _augmented;
9
- create<T extends INestApplication = NestApplication>(appModule: IEntryNestModule, options?: ForgeApplicationOptions): Promise<T>;
10
- create<T extends INestApplication = NestApplication>(appModule: IEntryNestModule, httpAdapter: AbstractHttpAdapter, options?: ForgeApplicationOptions): Promise<T>;
9
+ create<T extends INestApplication = INestApplication>(appModule: IEntryNestModule, options?: ForgeApplicationOptions): Promise<T>;
10
+ create<T extends INestApplication = INestApplication>(appModule: IEntryNestModule, httpAdapter: AbstractHttpAdapter, options?: ForgeApplicationOptions): Promise<T>;
11
11
  createApplicationContext(appModule: IEntryNestModule, options: ForgeApplicationContextOptions): Promise<INestApplicationContext>;
12
12
  createMicroservice<T extends object>(appModule: IEntryNestModule, options: ForgeMicroserviceOptions & T): Promise<import("@nestjs/common").INestMicroservice>;
13
13
  protected discoverExtensions(resolvables: ForgeExtensionResolvable | ForgeExtensionResolvable[]): ForgeExtension[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nest-forge/core",
3
3
  "description": "",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.json",
7
7
  "watch": "rimraf dist && tsc -w -p tsconfig.json",