File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { SecureContextOptions } from 'tls' ;
2
+
3
+
4
+ export interface ClusterOptions {
5
+ /** specify framework that can be absolute path or npm package */
6
+ framework ?: string ;
7
+ /** directory of application, default to `process.cwd()` */
8
+ baseDir ?: string ;
9
+ /** customized plugins, for unittest */
10
+ plugins ?: object | null ;
11
+ /** numbers of app workers, default to `os.cpus().length` */
12
+ workers ?: number ;
13
+ /** listening port, default to 7001(http) or 8443(https) */
14
+ port ?: number ;
15
+ /** Ref: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options */
16
+ https ?: SecureContextOptions ;
17
+ [ prop : string ] : any ;
18
+ }
19
+
20
+
21
+
22
+ export function startCluster ( options : ClusterOptions , callback : ( ...args : any [ ] ) => any ) : void ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.19.1" ,
4
4
"description" : " cluster manager for egg" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"autod" : " autod" ,
8
9
"lint" : " eslint ." ,
14
15
},
15
16
"files" : [
16
17
" index.js" ,
18
+ " index.d.ts" ,
17
19
" lib"
18
20
],
19
21
"repository" : {
You can’t perform that action at this time.
0 commit comments