mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
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:
2
handlebars/handlebars.d.ts
vendored
2
handlebars/handlebars.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user