Skip to content

Commit

Permalink
refactor(): reduce complexity of NestFactory.create signature
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhob committed Jul 15, 2018
1 parent 8d62307 commit 442b08f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/core/nest-factory.ts
Expand Up @@ -34,10 +34,7 @@ export class NestFactoryStatic {
*/
public async create(
module: any,
): Promise<INestApplication & INestExpressApplication>;
public async create(
module: any,
options: NestApplicationOptions,
options?: NestApplicationOptions,
): Promise<INestApplication & INestExpressApplication>;
public async create(
module: any,
Expand All @@ -46,12 +43,7 @@ export class NestFactoryStatic {
): Promise<INestApplication & INestFastifyApplication>;
public async create(
module: any,
httpServer: HttpServer,
options?: NestApplicationOptions,
): Promise<INestApplication & INestExpressApplication>;
public async create(
module: any,
httpServer: any,
httpServer: HttpServer | any,
options?: NestApplicationOptions,
): Promise<INestApplication & INestExpressApplication>;
public async create(
Expand Down

0 comments on commit 442b08f

Please sign in to comment.