UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge

35 lines (34 loc) 1.05 kB
import { INestApplication } from '@nestjs/common'; import { HTTPInjectOptions, HTTPInjectResponse } from 'fastify'; export interface NestFastifyApplication extends INestApplication { /** * A wrapper function around native `fastify.register()` method. * Example `app.register(require('fastify-formbody'))` * * @returns {this} */ register(...args: any[]): this; /** * Sets a base directory for public assets. * Example `app.useStaticAssets({ root: 'public' })` * * @returns {this} */ useStaticAssets(options: { root: string; prefix?: string; setHeaders?: Function; send?: any; }): this; /** * Sets a view engine for templates (views), for example: `pug`, `handlebars`, or `ejs`. * * @returns {this} */ setViewEngine(options: any): this; /** * A wrapper function around native `fastify.inject()` method. * @returns {void} */ inject(opts: HTTPInjectOptions | string): Promise<HTTPInjectResponse>; }