Skip to content

Commit

Permalink
fix: 修复render类型定义无法扩展的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
taomas committed Feb 4, 2021
1 parent 69bfc03 commit fca3075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export abstract class Template extends BaseClass {
// absolute path to template dir
public path = ''
public templates: Template[] = []
protected renderer = () => {}
protected renderer?: Function
protected data: Record<string | number, any> = {}
protected files: Files = {}
protected targetDir = process.cwd()
Expand Down

0 comments on commit fca3075

Please sign in to comment.