Skip to content

feat(core): export IEntryNestModule type#16640

Merged
kamilmysliwiec merged 1 commit intonestjs:masterfrom
Krishnachaitanyakc:fix/export-entry-nest-module
Mar 25, 2026
Merged

feat(core): export IEntryNestModule type#16640
kamilmysliwiec merged 1 commit intonestjs:masterfrom
Krishnachaitanyakc:fix/export-entry-nest-module

Conversation

@Krishnachaitanyakc
Copy link
Contributor

Summary

  • Export the IEntryNestModule type alias from @nestjs/core so consumers can use it to properly type wrapper functions around NestFactory.create(), NestFactory.createMicroservice(), and NestFactory.createApplicationContext()
  • Added @publicApi JSDoc tag to the type definition for consistency with other public API exports
  • The type was previously internal (type without export) in nest-factory.ts; this change makes it export type and adds it to the barrel export in index.ts

Closes #16633

Test plan

  • Verified TypeScript compilation passes (tsc --noEmit)
  • Verified all 762 existing unit tests pass (mocha packages/**/*.spec.ts)
  • Verified ESLint passes on modified files
  • Verified the type is now importable: import { IEntryNestModule } from '@nestjs/core'
  • This is a purely additive change (new export); no existing behavior is modified

Export the `IEntryNestModule` type so that consumers can properly type
wrapper functions around `NestFactory.create()` when using TypeScript.

Closes nestjs#16633
@coveralls
Copy link

Pull Request Test Coverage Report for Build a04ba923-c529-4187-8599-16fa2666a42b

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 89.841%

Totals Coverage Status
Change from base Build 6236cae6-7cf0-4fee-b50e-9546cfab30b0: 0.0%
Covered Lines: 7473
Relevant Lines: 8318

💛 - Coveralls

@kamilmysliwiec kamilmysliwiec merged commit 3bd47ab into nestjs:master Mar 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We should export IEntryNestModule

3 participants