From 09169a799d3ba7b6bfc45b404193ef93f151bdfb Mon Sep 17 00:00:00 2001 From: WayJam So Date: Fri, 4 Oct 2019 05:34:07 +0800 Subject: [PATCH] fix: update type of eureka-js-client config obj (#38585) --- types/eureka-js-client/index.d.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/types/eureka-js-client/index.d.ts b/types/eureka-js-client/index.d.ts index f6a9ec8a85..1162e13230 100644 --- a/types/eureka-js-client/index.d.ts +++ b/types/eureka-js-client/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for eureka-js-client 4.4 +// Type definitions for eureka-js-client 4.5 // Project: https://github.com/jquatier/eureka-js-client // Definitions by: Ilko Hoffmann // Karl O. // Tom Barton // Josh Sullivan +// WayJam So // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export class Eureka { @@ -23,6 +24,13 @@ export namespace EurekaClient { requestMiddleware?: EurekaMiddlewareConfig; instance: EurekaInstanceConfig; eureka: EurekaClientConfig; + shouldUseDelta?: boolean; + logger?: { + warn: (...args: any[]) => void; + info: (...args: any[]) => void; + debug: (...args: any[]) => void; + error: (...args: any[]) => void; + }; } interface EurekaInstanceConfig { app: string; @@ -70,13 +78,6 @@ export namespace EurekaClient { registerWithEureka?: boolean; useLocalMetadata?: boolean; preferIpAddress?: boolean; - shouldUseDelta?: boolean; - logger?: { - warn: (...args: any[]) => void; - info: (...args: any[]) => void; - debug: (...args: any[]) => void; - error: (...args: any[]) => void; - }; } interface EurekaYmlConfig { cwd: string;