mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			297 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			297 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export type FileRenderPlugin = {
 | |
|   // unique plugin name
 | |
|   name: string;
 | |
| 
 | |
|   // test if plugin can handle a specified file
 | |
|   canHandle: (filename: string, mimeType: string) => boolean;
 | |
| 
 | |
|   // render file content
 | |
|   render: (container: HTMLElement, fileUrl: string, options?: any) => Promise<void>;
 | |
| }
 |