Fix type "RuntimeOptions" also accepting string partials
This commit is contained in:
committed by
Jakob Linskeseder
parent
ce1f2abf5a
commit
1fc4ef09c1
Vendored
+2
-2
@@ -31,7 +31,7 @@ declare namespace Handlebars {
|
||||
partial?: boolean;
|
||||
depths?: any[];
|
||||
helpers?: { [name: string]: Function };
|
||||
partials?: { [name: string]: HandlebarsTemplateDelegate };
|
||||
partials?: { [name: string]: Template };
|
||||
decorators?: { [name: string]: Function };
|
||||
data?: any;
|
||||
blockParams?: any[];
|
||||
@@ -63,7 +63,7 @@ declare namespace Handlebars {
|
||||
export function unregisterHelper(name: string): void;
|
||||
|
||||
export function registerPartial(name: string, fn: Template): void;
|
||||
export function registerPartial(spec: { [name: string]: HandlebarsTemplateDelegate }): void;
|
||||
export function registerPartial(spec: { [name: string]: Template }): void;
|
||||
export function unregisterPartial(name: string): void;
|
||||
|
||||
// TODO: replace Function with actual signature
|
||||
|
||||
@@ -250,6 +250,9 @@ function testProtoAccessControlControlOptions() {
|
||||
allowedProtoProperties: { allowedProperty: true, forbiddenProperty: false },
|
||||
allowProtoMethodsByDefault: true,
|
||||
allowProtoPropertiesByDefault: false,
|
||||
partials: {
|
||||
link: '<a href="/people/{{id}}">{{name}}</a>'
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user