File tree Expand file tree Collapse file tree 4 files changed +155
-116
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 4 files changed +155
-116
lines changed Original file line number Diff line number Diff line change 88 ],
99 "parserOptions": {
1010 "sourceType": "module",
11- "useJSXTextNode": true,
12- "project": "./tsconfig.json"
11+ "useJSXTextNode": true
1312 },
1413 "rules": {
1514 "no-underscore-dangle": 0,
Original file line number Diff line number Diff line change 88 "@types/jest" : " ^24.0.19" ,
99 "@types/mongodb" : " ^3.3.6" ,
1010 "@types/node" : " ^12.11.2" ,
11- "@typescript-eslint/eslint-plugin" : " ^1.9.0" ,
11+ "@typescript-eslint/eslint-plugin" : " ^2.5.0" ,
12+ "@typescript-eslint/parser" : " ^2.5.0" ,
1213 "cross-env" : " ^6.0.3" ,
13- "eslint" : " ^5.15 .1" ,
14- "eslint-config-prettier" : " ^4.3 .0" ,
15- "eslint-plugin-prettier" : " ^3.1.0 " ,
14+ "eslint" : " ^6.5 .1" ,
15+ "eslint-config-prettier" : " ^6.4 .0" ,
16+ "eslint-plugin-prettier" : " ^3.1.1 " ,
1617 "flowgen" : " ^1.10.0" ,
1718 "jest" : " ^24.9.0" ,
1819 "lerna" : " ^3.18.2" ,
Original file line number Diff line number Diff line change @@ -33,23 +33,17 @@ export default class MongoInstance {
3333
3434 childProcess : ChildProcess | null ;
3535 killerProcess : ChildProcess | null ;
36- // @ts -ignore: Need to initialize this function
37- instanceReady : Function ;
38- // @ts -ignore: Need to initialize this function
3936 waitForPrimaryResolveFns : Function [ ] ;
40- // @ts -ignore: Need to initialize this function
41- isInstancePrimary : boolean ;
42- // @ts -ignore: Need to initialize this function
43- instanceFailed : Function ;
44- isInstanceReady : boolean ;
37+ isInstancePrimary : boolean = false ;
38+ isInstanceReady : boolean = false ;
39+ instanceReady : ( ) => void = ( ) => { } ;
40+ instanceFailed : ( err : any ) => void = ( ) => { } ;
4541
4642 constructor ( opts : MongodOps ) {
4743 this . opts = opts ;
48- this . isInstanceReady = false ;
4944 this . childProcess = null ;
5045 this . killerProcess = null ;
5146 this . waitForPrimaryResolveFns = [ ] ;
52- this . isInstancePrimary = false ;
5347
5448 if ( this . opts . debug ) {
5549 if ( ! this . opts . instance ) this . opts . instance = { } ;
You can’t perform that action at this time.
0 commit comments