@squared-functions/types
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -46,7 +46,7 @@ /// <reference path="file.d.ts" /> | ||
isJpeg(filename: string, mimeType?: string, filepath?: string): boolean; | ||
parseResizeMode(value: string): Undef<ResizeMode>; | ||
parseResizeMode(value: string): Undef<ResizeData>; | ||
parseOpacity(value: string): Undef<number>; | ||
parseRotation(value: string): Undef<number[]>; | ||
resize(self: jimp, width: number, height: number, mode?: string): jimp; | ||
rotate(self: jimp, filepath: string, values: number[], manager: IFileManager): jimp; | ||
parseRotation(value: string): Undef<RotateData>; | ||
resize(self: jimp, options: ResizeData): jimp; | ||
rotate(self: jimp, options: RotateData, filepath: string, preRotate?: () => void, postWrite?: (result?: any) => void): jimp; | ||
opacity(self: jimp, value: Undef<number>): jimp; | ||
@@ -81,3 +81,3 @@ } | ||
readonly assets: ExpressAsset[]; | ||
readonly postFinalize: (this: functions.IFileManager) => void; | ||
readonly postFinalize: (this: IFileManager) => void; | ||
readonly requestMain?: ExpressAsset; | ||
@@ -110,3 +110,3 @@ add(value: string): void; | ||
checkPermissions(res: Response, dirname: string): boolean; | ||
loadSettings(value: Settings): void; | ||
loadSettings(value: Settings, ignorePermissions?: boolean): void; | ||
moduleNode(): INode; | ||
@@ -204,8 +204,15 @@ moduleCompress(): ICompress; | ||
interface ResizeMode { | ||
mode: string; | ||
interface RotateData { | ||
values: number[]; | ||
color: Null<number>; | ||
} | ||
interface ResizeData { | ||
width: number; | ||
height: number; | ||
mode: string; | ||
algorithm: string; | ||
align: number; | ||
} | ||
export as namespace functions; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Type definitions for squared-functions", | ||
@@ -17,3 +17,3 @@ "types": "lib/index.d.ts", | ||
"dependencies": { | ||
"typescript": "^3.8.3" | ||
"typescript": "^4.0.5" | ||
}, | ||
@@ -20,0 +20,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10657
239
+ Addedtypescript@4.9.5(transitive)
- Removedtypescript@3.9.10(transitive)
Updatedtypescript@^4.0.5