From 6163dcb7a51ef86164b0fcf5a056d4834ea5962b Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Tue, 29 Mar 2016 21:57:41 +0200 Subject: [PATCH] creating dummy d.ts for jimp --- backend/middlewares/ThumbnailGeneratorMWs.ts | 4 ++++ backend/middlewares/jimp.d.ts | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 backend/middlewares/jimp.d.ts diff --git a/backend/middlewares/ThumbnailGeneratorMWs.ts b/backend/middlewares/ThumbnailGeneratorMWs.ts index df17060b..e963a242 100644 --- a/backend/middlewares/ThumbnailGeneratorMWs.ts +++ b/backend/middlewares/ThumbnailGeneratorMWs.ts @@ -1,3 +1,5 @@ +/// + import * as path from 'path'; import * as Jimp from 'jimp'; @@ -6,6 +8,8 @@ import * as fs from 'fs'; import {NextFunction, Request, Response} from "express"; import {Error, ErrorCodes} from "../../common/entities/Error"; + + export class ThumbnailGeneratorMWs { public static generateThumbnail(req:Request, res:Response, next:NextFunction){ diff --git a/backend/middlewares/jimp.d.ts b/backend/middlewares/jimp.d.ts new file mode 100644 index 00000000..b7941dd1 --- /dev/null +++ b/backend/middlewares/jimp.d.ts @@ -0,0 +1,4 @@ +declare module "jimp"{ + function read(filaname); + var AUTO:any; +} \ No newline at end of file