Type Alias ShowHTMLConstructorOptions

ShowHTMLConstructorOptions: Partial<ShowHTMLOptions> & {
    inject: {
        getHTMLGenerator?: (() => HTMLGenerator | undefined);
        sendFile: SendFile;
    };
}

The options to construct a ShowHTML.

Type declaration

  • inject: {
        getHTMLGenerator?: (() => HTMLGenerator | undefined);
        sendFile: SendFile;
    }

    A dictionary with the dependencies to inject.

    • OptionalgetHTMLGenerator?: (() => HTMLGenerator | undefined)

      A function to get a possible HTMLGenerator. This is injected as a "getter" to not interrupt the DIC "lifecycle": middlewares are initialized right when the app starts, and injecting a reference would force the service to be initialized too, even if a request is not being made.

    • sendFile: SendFile