refactor: change access modifiers for properties in Template class to public
This commit is contained in:
		
							
								
								
									
										8
									
								
								dist/template.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								dist/template.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -1,9 +1,9 @@
 | 
			
		||||
export default class Template {
 | 
			
		||||
    private views;
 | 
			
		||||
    private globals;
 | 
			
		||||
    private cache;
 | 
			
		||||
    views: string;
 | 
			
		||||
    globals: Record<string, any>;
 | 
			
		||||
    cache: boolean;
 | 
			
		||||
    debug: boolean;
 | 
			
		||||
    private templates;
 | 
			
		||||
    private debug;
 | 
			
		||||
    constructor();
 | 
			
		||||
    setDebug(debug: boolean): void;
 | 
			
		||||
    setViews(views: string): void;
 | 
			
		||||
 
 | 
			
		||||
@@ -2,11 +2,11 @@ import fs from "node:fs";
 | 
			
		||||
import path from "node:path";
 | 
			
		||||
 | 
			
		||||
export default class Template {
 | 
			
		||||
  private views: string;
 | 
			
		||||
  private globals: Record<string, any>;
 | 
			
		||||
  private cache: boolean;
 | 
			
		||||
  public views: string;
 | 
			
		||||
  public globals: Record<string, any>;
 | 
			
		||||
  public cache: boolean;
 | 
			
		||||
  public debug: boolean;
 | 
			
		||||
  private templates: Map<string, { code: string; cached: Date }>;
 | 
			
		||||
  private debug: boolean;
 | 
			
		||||
 | 
			
		||||
  constructor() {
 | 
			
		||||
    this.views = "./views";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user