Updated type definitions files that changed with bump of typescript version

refs 295887dd24
This commit is contained in:
Naz 2020-11-23 16:13:51 +13:00
parent a7b523e0f3
commit a7570680fb
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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;