Skip to content

Commit

Permalink
fix(): fix mongoose options when types package not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 28, 2020
1 parent e2e88b3 commit 1110157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/interfaces/mongoose-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { Type } from '@nestjs/common';
import { ModuleMetadata } from '@nestjs/common/interfaces';
import { ConnectionOptions } from 'mongoose';

export interface MongooseModuleOptions extends ConnectionOptions {
export interface MongooseModuleOptions
extends ConnectionOptions,
Record<string, any> {
uri?: string;
retryAttempts?: number;
retryDelay?: number;
Expand Down
1 change: 1 addition & 0 deletions lib/mongoose-core.module.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import {
DynamicModule,
Global,
Expand Down

0 comments on commit 1110157

Please sign in to comment.