outers
Version:
outers - a all in one package for your day to day use
13 lines (12 loc) • 879 B
TypeScript
import RenderResponseInterface from "../Config/Interfaces/Response/Render-Response-Interface";
/**
* Renders a response with provided parameters.
* @param {RenderResponseInterface} options - An object containing parameters for rendering the response.
* @param {number} options.statusCode - The HTTP status code to be set.
* @param {string} options.FileName - The name of the template file to render.
* @param {Object} options.Variables - The variables to be passed to the template file.
* @param {Array} options.cookieData - An array of objects representing cookie data to be set.
* @param {Response} options.response - The Express response object.
* @param {string} options.contentType - The content type of the response.
*/
export default function RenderResponse({ statusCode, FileName, Variables, cookieData, response, contentType, }: RenderResponseInterface): void;