From 03a89443904211785ca600ec74f78d75bbf7a299 Mon Sep 17 00:00:00 2001 From: x22x22 Date: Sat, 3 Feb 2018 12:23:36 +0800 Subject: [PATCH] docs: d.ts of resources& logger (#2079) --- index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 151d097366..45c6b91ea4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -32,10 +32,10 @@ declare class BaseContextClass { // tslint:disable-line } export interface Logger { - info(info: string, ...args: string[]): void; - warn(info: string, ...args: string[]): void; - debug(info: string, ...args: string[]): void; - error(info: string | Error, ...args: string[]): void; + info(info: string, ...args: any[]): void; + warn(info: string, ...args: any[]): void; + debug(info: string, ...args: any[]): void; + error(info: string | Error, ...args: any[]): void; } export type RequestArrayBody = any[]; @@ -523,6 +523,7 @@ export interface Application extends EggApplication { * restful router api */ resources(name: string, prefix: string, fn: string): Router; + resources(path: string, prefix: string, ...middleware: any[]): Router; redirect(path: string, redirectPath: string): void;