From a7570680fb031b6d40daff155cabc691dc74e91a Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 23 Nov 2020 16:13:51 +1300 Subject: [PATCH] Updated type definitions files that changed with bump of typescript version refs 295887dd248c739b819ca5c37bbbbbcb60999baa --- .../types/lib/moleculer-service-from-class.d.ts | 5 +++-- ghost/session-service/types/index.d.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ghost/moleculer-service-from-class/types/lib/moleculer-service-from-class.d.ts b/ghost/moleculer-service-from-class/types/lib/moleculer-service-from-class.d.ts index c3c5b6e9a3..c3887e2ccd 100644 --- a/ghost/moleculer-service-from-class/types/lib/moleculer-service-from-class.d.ts +++ b/ghost/moleculer-service-from-class/types/lib/moleculer-service-from-class.d.ts @@ -22,7 +22,7 @@ export = createMoleculerServiceSchema; declare function createMoleculerServiceSchema; }>({ Service, name, serviceDeps, staticDeps, forceSingleton, version }: { - Service: new (arg1: object) => Type; + Service: Class; name: string; serviceDeps?: { [x: string]: ServiceDefinition; @@ -32,7 +32,7 @@ declare function createMoleculerServiceSchema; +}): moleculer.ServiceSchema; declare namespace createMoleculerServiceSchema { export { Service, Class, ServiceDefinition }; } @@ -44,4 +44,5 @@ type ServiceDefinition = { name: string; version: string; }; +import moleculer = require("moleculer"); type Service = any; diff --git a/ghost/session-service/types/index.d.ts b/ghost/session-service/types/index.d.ts index 9cbd17abd1..c0bf43bc18 100644 --- a/ghost/session-service/types/index.d.ts +++ b/ghost/session-service/types/index.d.ts @@ -1,8 +1,8 @@ -declare const _exports: ({ getSession, findUserById, getOriginOfRequest }: { +declare function _exports({ getSession, findUserById, getOriginOfRequest }: { getSession: (req: import("express").Request, res: import("express").Response) => Promise; findUserById: (data: { id: string; }) => Promise; getOriginOfRequest: (req: import("express").Request) => string; -}) => import("./lib/SessionService").SessionService; +}): import("./lib/SessionService").SessionService; export = _exports;