mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Updated type definitions files that changed with bump of typescript version
refs 295887dd24
This commit is contained in:
parent
a7b523e0f3
commit
a7570680fb
@ -22,7 +22,7 @@ export = createMoleculerServiceSchema;
|
||||
declare function createMoleculerServiceSchema<Type extends {
|
||||
_init(): Promise<void>;
|
||||
}>({ Service, name, serviceDeps, staticDeps, forceSingleton, version }: {
|
||||
Service: new (arg1: object) => Type;
|
||||
Service: Class<Type>;
|
||||
name: string;
|
||||
serviceDeps?: {
|
||||
[x: string]: ServiceDefinition;
|
||||
@ -32,7 +32,7 @@ declare function createMoleculerServiceSchema<Type extends {
|
||||
};
|
||||
forceSingleton?: boolean;
|
||||
version?: string;
|
||||
}): import("moleculer").ServiceSchema<import("moleculer").ServiceSettingSchema>;
|
||||
}): 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;
|
||||
|
4
ghost/session-service/types/index.d.ts
vendored
4
ghost/session-service/types/index.d.ts
vendored
@ -1,8 +1,8 @@
|
||||
declare const _exports: ({ getSession, findUserById, getOriginOfRequest }: {
|
||||
declare function _exports({ getSession, findUserById, getOriginOfRequest }: {
|
||||
getSession: (req: import("express").Request<import("express-serve-static-core").ParamsDictionary>, res: import("express").Response<any>) => Promise<import("./lib/SessionService").Session>;
|
||||
findUserById: (data: {
|
||||
id: string;
|
||||
}) => Promise<import("./lib/SessionService").User>;
|
||||
getOriginOfRequest: (req: import("express").Request<import("express-serve-static-core").ParamsDictionary>) => string;
|
||||
}) => import("./lib/SessionService").SessionService;
|
||||
}): import("./lib/SessionService").SessionService;
|
||||
export = _exports;
|
||||
|
Loading…
Reference in New Issue
Block a user