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:
346346- ` build ` : builds your application and returns the ` fastify ` instance without calling the ` listen ` method.
347347- ` listen ` : starts your application and returns the ` fastify ` instance listening on the configured port.
348348
349- Both of these utilities have the ` function(arg , pluginOptions, serverOptions) ` parameters:
349+ Both of these utilities have the ` function(args , pluginOptions, serverOptions) ` parameters:
350350
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.
352352- ` pluginOptions ` : is an object containing the options provided to the started plugin (eg: ` app.js ` ).
353353- ` serverOptions ` : is an object containing the additional options provided to fastify server, similar to the ` --options ` command line argument
354354
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import fastify from 'fastify'
22
33declare module 'fastify-cli/helper.js' {
44 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 > ;
66 }
77
88 export = helper ;
You can’t perform that action at this time.
0 commit comments