File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,9 @@ There are two utilities provided:
346
346
- ` build ` : builds your application and returns the ` fastify ` instance without calling the ` listen ` method.
347
347
- ` listen ` : starts your application and returns the ` fastify ` instance listening on the configured port.
348
348
349
- Both of these utilities have the ` function(arg , pluginOptions, serverOptions) ` parameters:
349
+ Both of these utilities have the ` function(args , pluginOptions, serverOptions) ` parameters:
350
350
351
- - ` cliArgs ` : is a string or a string array within the same arguments passed to the ` fastify-cli ` command.
351
+ - ` args ` : is a string or a string array within the same arguments passed to the ` fastify-cli ` command.
352
352
- ` pluginOptions ` : is an object containing the options provided to the started plugin (eg: ` app.js ` ).
353
353
- ` serverOptions ` : is an object containing the additional options provided to fastify server, similar to the ` --options ` command line argument
354
354
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import fastify from 'fastify'
2
2
3
3
declare module 'fastify-cli/helper.js' {
4
4
module helper {
5
- export function build ( argv : Array < string > , config : Object ) : ReturnType < typeof fastify > ;
5
+ export function build ( args : Array < string > , additionalOptions ?: Object , serverOptions ? : Object ) : ReturnType < typeof fastify > ;
6
6
}
7
7
8
8
export = helper ;
You can’t perform that action at this time.
0 commit comments