File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ import { TemplateDelegate } from 'handlebars' ;
1
2
import * as Path from 'path' ;
2
3
3
4
import { Event } from '../utils/events' ;
@@ -110,7 +111,7 @@ export class PageEvent extends Event {
110
111
/**
111
112
* The template that should be used to render this page.
112
113
*/
113
- template ?: HandlebarsTemplateDelegate ;
114
+ template ?: TemplateDelegate ;
114
115
115
116
/**
116
117
* The name of the template that should be used to render this page.
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import * as Handlebars from 'handlebars';
3
3
import { readFile } from '../../../utils/fs' ;
4
4
import { ResourceStack , Resource } from './stack' ;
5
5
6
- export class Template extends Resource {
7
- private template ?: HandlebarsTemplateDelegate ;
6
+ export class Template < T = any > extends Resource {
7
+ private template ?: Handlebars . TemplateDelegate < T > ;
8
8
9
- getTemplate ( ) : HandlebarsTemplateDelegate {
9
+ getTemplate ( ) : Handlebars . TemplateDelegate < T > {
10
10
if ( ! this . template ) {
11
11
const raw = readFile ( this . fileName ) ;
12
12
this . template = Handlebars . compile ( raw , {
You can’t perform that action at this time.
0 commit comments