Skip to content

Commit 1d9dd18

Browse files
bugfix(@nestjs/core) NestFactory.create() returns any
1 parent 8c12c3b commit 1d9dd18

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/core/nest-factory.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ export class NestFactoryStatic {
3333
* Creates an instance of the NestApplication (returns Promise)
3434
* @returns an `Promise` of the INestApplication instance
3535
*/
36-
public async create(module: any);
37-
public async create(module: any, options: NestApplicationOptions);
38-
public async create(module: any, express: any, options: NestApplicationOptions);
36+
public async create(module: any): Promise<INestApplication>;
37+
public async create(
38+
module: any,
39+
options: NestApplicationOptions,
40+
): Promise<INestApplication>;
41+
public async create(
42+
module: any,
43+
express: any,
44+
options: NestApplicationOptions,
45+
): Promise<INestApplication>;
3946
public async create(
4047
module: any,
4148
expressOrOptions?: any,

0 commit comments

Comments
 (0)