refactor: change access modifiers for properties in Template class to public

This commit is contained in:
Flummi 2025-03-19 13:10:36 +01:00
parent 9f5c0f4dea
commit 75d066cf36
2 changed files with 8 additions and 8 deletions

8
dist/template.d.ts vendored
View File

@ -1,9 +1,9 @@
export default class Template { export default class Template {
private views; views: string;
private globals; globals: Record<string, any>;
private cache; cache: boolean;
debug: boolean;
private templates; private templates;
private debug;
constructor(); constructor();
setDebug(debug: boolean): void; setDebug(debug: boolean): void;
setViews(views: string): void; setViews(views: string): void;

View File

@ -2,11 +2,11 @@ import fs from "node:fs";
import path from "node:path"; import path from "node:path";
export default class Template { export default class Template {
private views: string; public views: string;
private globals: Record<string, any>; public globals: Record<string, any>;
private cache: boolean; public cache: boolean;
public debug: boolean;
private templates: Map<string, { code: string; cached: Date }>; private templates: Map<string, { code: string; cached: Date }>;
private debug: boolean;
constructor() { constructor() {
this.views = "./views"; this.views = "./views";