Skip to content

Commit

Permalink
feat(typings): add ClusterOptions['serialization']
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Feb 13, 2020
1 parent 1181a67 commit 3a0958f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.d.ts
Expand Up @@ -1055,6 +1055,12 @@ declare module 'egg' {
key?: string;
/** ssl cert */
cert?: string;
/**
* Advanced serialization for IPC, requires Node.js >= v12.16.0
* @default json
* @see https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#advanced-serialization-for-ipc
*/
serialization?: 'json' | 'advanced';
[prop: string]: any;
}

Expand All @@ -1064,9 +1070,9 @@ declare module 'egg' {
/** specify framework that can be absolute path or npm package */
framework?: string;
/** directory of application, default to `process.cwd()` */
baseDir?: string;
baseDir?: string;
/** ignore single process mode warning */
ignoreWarning? :boolean
ignoreWarning? :boolean
}

export function start(options?:StartOptions):Promise<Application>
Expand Down

0 comments on commit 3a0958f

Please sign in to comment.