ForkOptionsFactory: ((event, name) => ForkOptions | undefined)

Type signature of a forkOptionsFactory function.

Type declaration

    • (event, name): ForkOptions | undefined
    • Parameters

      • event: H3Event<EventHandlerRequest>

        The request even for which a fork is about to be creted.

      • name: string

        The name of the instance being forked.

      Returns ForkOptions | undefined

Returns

The fork options that will be used in the new fork.