mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-11-24 08:42:24 +02:00
creating dummy d.ts for jimp
This commit is contained in:
parent
5eb495f986
commit
6163dcb7a5
@ -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
4
backend/middlewares/jimp.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
declare module "jimp"{
|
||||
function read(filaname);
|
||||
var AUTO:any;
|
||||
}
|
Loading…
Reference in New Issue
Block a user