1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

creating dummy d.ts for jimp

This commit is contained in:
Braun Patrik 2016-03-29 21:57:41 +02:00
parent 5eb495f986
commit 6163dcb7a5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
///<reference path="jimp.d.ts"/>
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){

4
backend/middlewares/jimp.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
declare module "jimp"{
function read(filaname);
var AUTO:any;
}