mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Add missing nunjucks signatures (#9507)
This commit is contained in:
committed by
Masahiro Wakame
parent
2901b0c3c4
commit
9be5376d53
6
nunjucks/nunjucks.d.ts
vendored
6
nunjucks/nunjucks.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user