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.
This commit is contained in:
Steven
2014-01-23 16:08:20 -08:00
parent 950d0d85a7
commit b8e5189925

View File

@@ -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;
}