From 8fc83723b33b0550ce61cbcb71e924f6e69cd60b Mon Sep 17 00:00:00 2001 From: segayuu Date: Tue, 7 Nov 2017 10:57:05 +0900 Subject: [PATCH] cleanup ignore lint error: unified-signatures --- types/nunjucks/index.d.ts | 9 ++------- types/nunjucks/tslint.json | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/types/nunjucks/index.d.ts b/types/nunjucks/index.d.ts index 6a75cecd27..cf5cd6f5b4 100644 --- a/types/nunjucks/index.d.ts +++ b/types/nunjucks/index.d.ts @@ -10,7 +10,6 @@ declare namespace Nunjucks { function renderString(src: string, context: Object): string; function renderString(src: string, context: Object, callback?: (err: any, res: string) => any): void; - function compile(src: string, env?: Environment): Template; function compile(src: string, env?: Environment, callback?: (err: any, res: Template) => any): Template; function precompile(path: string, opts?: PrecompileOptions): string; @@ -33,8 +32,7 @@ declare namespace Nunjucks { } function configure(options: ConfigureOptions): Environment; - function configure(path: string, options?: ConfigureOptions): Environment; - function configure(path: string[], options?: ConfigureOptions): Environment; + function configure(path: string | string[], options?: ConfigureOptions): Environment; interface ConfigureOptions { autoescape?: boolean; @@ -63,10 +61,7 @@ declare namespace Nunjucks { autoescape: boolean; }; - constructor(); - constructor(loader: ILoader, opts?: ConfigureOptions); - constructor(loaders: ILoader[], opts?: ConfigureOptions); - + constructor(loader?: ILoader | ILoader[], opts?: ConfigureOptions); render(name: string, context?: Object): string; render(name: string, context?: Object, callback?: (err: any, res: string) => any): void; diff --git a/types/nunjucks/tslint.json b/types/nunjucks/tslint.json index 2ff6c4ab8a..a5b37cd1f8 100644 --- a/types/nunjucks/tslint.json +++ b/types/nunjucks/tslint.json @@ -6,7 +6,6 @@ "export-just-namespace": false, "interface-name": false, "prefer-const": false, - "strict-export-declare-modifiers": false, - "unified-signatures": false + "strict-export-declare-modifiers": false } }