added doga

This commit is contained in:
szabomarton
2025-02-25 09:55:29 +01:00
parent 5174ab4cc4
commit 13254e5623
1149 changed files with 80161 additions and 0 deletions

38
25_02_24/node_modules/@tinyhttp/app/dist/view.d.ts generated vendored Normal file
View File

@@ -0,0 +1,38 @@
/*!
* Ported from https://github.com/expressjs/express/blob/master/lib/view.js
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
import type { TemplateEngine, TemplateEngineOptions } from './types.js';
/**
* Initialize a new `View` with the given `name`.
*
* Options:
*
* - `defaultEngine` the default template engine name
* - `engines` template engine require() cache
* - `root` root path for view lookup
*
* @param name
* @param options
* @public
*/
export declare class View<RenderOptions extends TemplateEngineOptions = TemplateEngineOptions> {
#private;
ext?: string;
defaultEngine?: string;
name: string;
engine: TemplateEngine<RenderOptions>;
path: string;
root: string | string[];
constructor(name: string, opts?: Partial<{
defaultEngine: string;
root: string | string[];
engines: Record<string, TemplateEngine<RenderOptions>>;
}>);
render(options: RenderOptions, data: Record<string, unknown>, cb: (err: Error | null, html: unknown) => void): void;
}
//# sourceMappingURL=view.d.ts.map