[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 8cfa0ed334
commit 3bf06f2894
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,6 @@
// TypeScript Version: 2.4
/// <reference types="jquery" />
/// <reference types="handlebars" />
declare module 'ember' {
// Capitalization is intentional: this makes it much easier to re-export RSVP on
@ -2421,6 +2420,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();