From b8e5189925133e00214566dfb9d77420be02f613 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 23 Jan 2014 16:08:20 -0800 Subject: [PATCH] Changing the context param to be OPTIONAL The compile function returns a template function. The template function takes two parameters, `context` and `options`. These are both optional parameters. This commit fixes `context` to be optional. --- handlebars/handlebars.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlebars/handlebars.d.ts b/handlebars/handlebars.d.ts index 28158031e5..ceff786637 100644 --- a/handlebars/handlebars.d.ts +++ b/handlebars/handlebars.d.ts @@ -16,7 +16,7 @@ interface HandlebarsStatic { parse(input: string): boolean; logger: Logger; log(level: number, obj: any): void; - compile(input: any, options?: any): (context: any, options?: any) => string; + compile(input: any, options?: any): (context?: any, options?: any) => string; Logger: typeof Logger; }