refactor: change access modifiers for properties in Template class to public
This commit is contained in:
parent
9f5c0f4dea
commit
75d066cf36
8
dist/template.d.ts
vendored
8
dist/template.d.ts
vendored
@ -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;
|
||||||
|
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user