0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Added newly generated TypeScript definiton files

no issue

- These files kept generating a new ouput when trying to publish an unrelated package. Assuming the generation is orrect and commiting this just to get things out of the way (type definition files should not break any functionality)
This commit is contained in:
Naz 2021-04-07 13:41:49 +12:00
parent 01f18aa4fa
commit 2ef3626123
3 changed files with 7 additions and 7 deletions

View file

@ -45,4 +45,4 @@ type ServiceDefinition = {
version: string;
};
import moleculer = require("moleculer");
type Service = any;
type Service = object;

View file

@ -34,10 +34,10 @@ declare function SessionFromToken<Token, Lookup>({ getTokenFromRequest, getLooku
declare namespace SessionFromToken {
export { User, Req, Res, Next, RequestHandler };
}
type Req = import("express").Request<import("express-serve-static-core").ParamsDictionary>;
type Req = import('express').Request;
type User = {
id: string;
};
type Res = import("express").Response<any>;
type RequestHandler = import("express").RequestHandler<import("express-serve-static-core").ParamsDictionary>;
type Next = import("express").NextFunction;
type Res = import('express').Response;
type RequestHandler = import('express').RequestHandler;
type Next = import('express').NextFunction;

View file

@ -16,8 +16,8 @@ export type Session = {
user_agent: string;
ip: string;
};
export type Req = import("express").Request<import("express-serve-static-core").ParamsDictionary>;
export type Res = import("express").Response<any>;
export type Req = import('express').Request;
export type Res = import('express').Response;
export type SessionService = {
getUserForSession: (req: Req, res: Res) => Promise<User | null>;
destroyCurrentSession: (req: Req, res: Res) => Promise<void>;