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 c3887e2ccd..2f059ea5c5 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 @@ -45,4 +45,4 @@ type ServiceDefinition = { version: string; }; import moleculer = require("moleculer"); -type Service = any; +type Service = object; diff --git a/ghost/mw-session-from-token/types/lib/SessionFromToken.d.ts b/ghost/mw-session-from-token/types/lib/SessionFromToken.d.ts index 2fe159399f..a687887864 100644 --- a/ghost/mw-session-from-token/types/lib/SessionFromToken.d.ts +++ b/ghost/mw-session-from-token/types/lib/SessionFromToken.d.ts @@ -34,10 +34,10 @@ declare function SessionFromToken({ getTokenFromRequest, getLooku declare namespace SessionFromToken { export { User, Req, Res, Next, RequestHandler }; } -type Req = import("express").Request; +type Req = import('express').Request; type User = { id: string; }; -type Res = import("express").Response; -type RequestHandler = import("express").RequestHandler; -type Next = import("express").NextFunction; +type Res = import('express').Response; +type RequestHandler = import('express').RequestHandler; +type Next = import('express').NextFunction; diff --git a/ghost/session-service/types/lib/SessionService.d.ts b/ghost/session-service/types/lib/SessionService.d.ts index 8eac89d840..3e187d6be0 100644 --- a/ghost/session-service/types/lib/SessionService.d.ts +++ b/ghost/session-service/types/lib/SessionService.d.ts @@ -16,8 +16,8 @@ export type Session = { user_agent: string; ip: string; }; -export type Req = import("express").Request; -export type Res = import("express").Response; +export type Req = import('express').Request; +export type Res = import('express').Response; export type SessionService = { getUserForSession: (req: Req, res: Res) => Promise; destroyCurrentSession: (req: Req, res: Res) => Promise;