[ember/v2] add limited handlebars types to old ember types

This commit is contained in:
Mike North 2019-03-01 12:00:16 -08:00
parent 4245ec9106
commit 9ecdc820da
2 changed files with 3 additions and 2 deletions

View File

@ -2414,6 +2414,7 @@ declare module 'ember' {
function print(ast: any): void;
const logger: typeof Ember.Logger;
function log(level: string, str: string): void;
function registerHelper(name: string, helper: any): void;
}
namespace String {
function camelize(str: string): string;

View File

@ -92,10 +92,10 @@ App.userController = Ember.Object.create({
}),
});
Handlebars.registerHelper(
Ember.Handlebars.registerHelper(
'highlight',
(property: string, options: any) =>
new Handlebars.SafeString('<span class="highlight">' + 'some value' + '</span>')
new Ember.Handlebars.SafeString('<span class="highlight">' + 'some value' + '</span>')
);
const coolView = App.CoolView.create();