Add missing nunjucks signatures (#9507)

This commit is contained in:
Olivier Adam
2016-06-02 17:30:16 +02:00
committed by Masahiro Wakame
parent 2901b0c3c4
commit 9be5376d53

View File

@@ -62,6 +62,7 @@ declare namespace nunjucks {
autoescape: boolean;
};
constructor();
constructor(loader: ILoader, opts?: ConfigureOptions);
constructor(loaders: ILoader[], opts?: ConfigureOptions);
@@ -122,6 +123,11 @@ declare namespace nunjucks {
getSource(name: string): LoaderSource;
}
export class WebLoader implements ILoader {
constructor(baseUrl: string, opts?: any);
getSource(name: string): LoaderSource;
}
export class PrecompiledLoader extends Loader implements ILoader {
init(searchPaths: string[], opts: any): void;
getSource(name: string): LoaderSource;