File tree Expand file tree Collapse file tree 3 files changed +14
-28
lines changed Expand file tree Collapse file tree 3 files changed +14
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { expectType } from 'tsd' ;
2
+ import { Application } from 'egg' ;
3
+ import '.' ;
4
+
5
+ const app = new Application ( ) ;
6
+
7
+ expectType < Promise < object > > ( app . mysql . get ( 'table' , { } ) ) ;
Original file line number Diff line number Diff line change 23
23
"ali-rds" : " ^3.4.0"
24
24
},
25
25
"devDependencies" : {
26
- "autod" : " ^3.1.2" ,
27
- "egg" : " ^2.35.0" ,
28
- "egg-bin" : " ^4.19.0" ,
26
+ "egg" : " ^3.5.0" ,
27
+ "egg-bin" : " ^5.5.0" ,
29
28
"egg-ci" : " ^2.1.0" ,
30
- "egg-mock" : " ^4 .2.1" ,
29
+ "egg-mock" : " ^5 .2.1" ,
31
30
"eslint" : " ^8.16.0" ,
32
- "eslint-config-egg" : " ^11 .1.0" ,
31
+ "eslint-config-egg" : " ^12 .1.0" ,
33
32
"git-contributor" : " ^1.0.10" ,
33
+ "tsd" : " ^0.25.0" ,
34
34
"utility" : " ^1.17.0"
35
35
},
36
36
"engines" : {
37
37
"node" : " >=14.0.0"
38
38
},
39
39
"scripts" : {
40
40
"contributor" : " git-contributor" ,
41
+ "tsd" : " tsd" ,
41
42
"test" : " npm run lint -- --fix && npm run test-local" ,
42
43
"test-local" : " egg-bin test" ,
43
44
"cov" : " egg-bin cov" ,
44
45
"lint" : " eslint ." ,
45
- "ci" : " npm run lint && npm run cov" ,
46
- "autod" : " autod"
46
+ "ci" : " npm run lint && npm run cov"
47
47
},
48
48
"ci" : {
49
49
"version" : " 14, 16, 18" ,
You can’t perform that action at this time.
0 commit comments