Skip to content

Commit

Permalink
chore: add public api jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Aug 9, 2023
1 parent 1ce6d9f commit a9466c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/conditional.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { DynamicModule, Logger, ModuleMetadata } from '@nestjs/common';
import { ConfigModule } from './config.module';

/**
* @publicApi
*/
export class ConditionalModule {
/**
* @publicApi
*/
static async registerWhen(
module: Required<ModuleMetadata>['imports'][number],
condition: string | ((env: NodeJS.ProcessEnv) => boolean),
Expand Down

0 comments on commit a9466c4

Please sign in to comment.