File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
packages/mongodb-memory-server-core/src Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ import {
99 authDefault ,
1010 statPath ,
1111} from './util/utils' ;
12- import MongoInstance , {
13- MongodOpts ,
14- MongoMemoryInstanceOpts ,
15- StorageEngine ,
16- } from './util/MongoInstance' ;
12+ import MongoInstance , { MongodOpts , MongoMemoryInstanceOpts } from './util/MongoInstance' ;
1713import { MongoBinaryOpts } from './util/MongoBinary' ;
1814import debug from 'debug' ;
1915import { EventEmitter } from 'events' ;
@@ -70,12 +66,12 @@ export interface AutomaticAuth {
7066 * Data used by _startUpInstance's "data" variable
7167 */
7268export interface StartupInstanceData {
73- port : number ;
74- dbPath ?: string ;
75- dbName : string ;
76- ip : string ;
77- storageEngine : StorageEngine ;
78- replSet ?: string ;
69+ port : NonNullable < MongoMemoryInstanceOpts [ 'port' ] > ;
70+ dbPath ?: MongoMemoryInstanceOpts [ 'dbPath' ] ;
71+ dbName : NonNullable < MongoMemoryInstanceOpts [ 'dbName' ] > ;
72+ ip : NonNullable < MongoMemoryInstanceOpts [ 'ip' ] > ;
73+ storageEngine : NonNullable < MongoMemoryInstanceOpts [ 'storageEngine' ] > ;
74+ replSet ?: NonNullable < MongoMemoryInstanceOpts [ 'replSet' ] > ;
7975 tmpDir ?: tmp . DirResult ;
8076}
8177
You can’t perform that action at this time.
0 commit comments