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:
parent
5eb495f986
commit
6163dcb7a5
@ -1,3 +1,5 @@
|
|||||||
|
///<reference path="jimp.d.ts"/>
|
||||||
|
|
||||||
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as Jimp from 'jimp';
|
import * as Jimp from 'jimp';
|
||||||
@ -6,6 +8,8 @@ import * as fs from 'fs';
|
|||||||
import {NextFunction, Request, Response} from "express";
|
import {NextFunction, Request, Response} from "express";
|
||||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export class ThumbnailGeneratorMWs {
|
export class ThumbnailGeneratorMWs {
|
||||||
|
|
||||||
public static generateThumbnail(req:Request, res:Response, next:NextFunction){
|
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