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 {
|
declare function createMoleculerServiceSchema<Type extends {
|
||||||
_init(): Promise<void>;
|
_init(): Promise<void>;
|
||||||
}>({ Service, name, serviceDeps, staticDeps, forceSingleton, version }: {
|
}>({ Service, name, serviceDeps, staticDeps, forceSingleton, version }: {
|
||||||
Service: new (arg1: object) => Type;
|
Service: Class<Type>;
|
||||||
name: string;
|
name: string;
|
||||||
serviceDeps?: {
|
serviceDeps?: {
|
||||||
[x: string]: ServiceDefinition;
|
[x: string]: ServiceDefinition;
|
||||||
@ -32,7 +32,7 @@ declare function createMoleculerServiceSchema<Type extends {
|
|||||||
};
|
};
|
||||||
forceSingleton?: boolean;
|
forceSingleton?: boolean;
|
||||||
version?: string;
|
version?: string;
|
||||||
}): import("moleculer").ServiceSchema<import("moleculer").ServiceSettingSchema>;
|
}): moleculer.ServiceSchema;
|
||||||
declare namespace createMoleculerServiceSchema {
|
declare namespace createMoleculerServiceSchema {
|
||||||
export { Service, Class, ServiceDefinition };
|
export { Service, Class, ServiceDefinition };
|
||||||
}
|
}
|
||||||
@ -44,4 +44,5 @@ type ServiceDefinition = {
|
|||||||
name: string;
|
name: string;
|
||||||
version: string;
|
version: string;
|
||||||
};
|
};
|
||||||
|
import moleculer = require("moleculer");
|
||||||
type Service = any;
|
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>;
|
getSession: (req: import("express").Request<import("express-serve-static-core").ParamsDictionary>, res: import("express").Response<any>) => Promise<import("./lib/SessionService").Session>;
|
||||||
findUserById: (data: {
|
findUserById: (data: {
|
||||||
id: string;
|
id: string;
|
||||||
}) => Promise<import("./lib/SessionService").User>;
|
}) => Promise<import("./lib/SessionService").User>;
|
||||||
getOriginOfRequest: (req: import("express").Request<import("express-serve-static-core").ParamsDictionary>) => string;
|
getOriginOfRequest: (req: import("express").Request<import("express-serve-static-core").ParamsDictionary>) => string;
|
||||||
}) => import("./lib/SessionService").SessionService;
|
}): import("./lib/SessionService").SessionService;
|
||||||
export = _exports;
|
export = _exports;
|
||||||
|
Loading…
Reference in New Issue
Block a user