You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					38 lines
				
				846 B
			
		
		
			
		
	
	
					38 lines
				
				846 B
			| 
											3 years ago
										 | import { FastifyPlugin, FastifyReply, RawServerBase } from 'fastify'; | ||
|  | 
 | ||
|  | declare module "fastify" { | ||
|  |   interface FastifyReply { | ||
|  |     view<T extends { [key: string]: any; }>(page: string, data: T): FastifyReply; | ||
|  |     view(page: string, data?: object): FastifyReply; | ||
|  |   } | ||
|  | } | ||
|  | 
 | ||
|  | export interface PointOfViewOptions { | ||
|  |   engine: { | ||
|  |     ejs?: any; | ||
|  |     eta?: any; | ||
|  |     nunjucks?: any; | ||
|  |     pug?: any; | ||
|  |     handlebars?: any; | ||
|  |     mustache?: any; | ||
|  |     'art-template'?: any; | ||
|  |     twig?: any; | ||
|  |     liquid?: any; | ||
|  |     dot?: any; | ||
|  |   }; | ||
|  |   templates?: string; | ||
|  |   includeViewExtension?: boolean; | ||
|  |   options?: object; | ||
|  |   charset?: string; | ||
|  |   maxCache?: number; | ||
|  |   production?: boolean; | ||
|  |   defaultContext?: object; | ||
|  |   layout?: string; | ||
|  |   root?: string; | ||
|  |   viewExt?: string; | ||
|  |   propertyName?: string; | ||
|  | } | ||
|  | 
 | ||
|  | declare const pointOfView: FastifyPlugin<PointOfViewOptions>; | ||
|  | export default pointOfView; |