@squared-functions/types
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -19,2 +19,3 @@ /// <reference path="type.d.ts" /> | ||
} | ||
interface FileAsset extends LocationUri { | ||
@@ -28,2 +29,3 @@ content?: string; | ||
} | ||
interface Exclusions extends Partial<LocationUri> { | ||
@@ -33,2 +35,3 @@ extension?: string[]; | ||
} | ||
interface CompressFormat { | ||
@@ -39,2 +42,3 @@ format: string; | ||
} | ||
interface ResultOfFileAction { | ||
@@ -59,7 +63,8 @@ success: boolean; | ||
exclude?: boolean; | ||
requestMain?: boolean; | ||
basePath?: string; | ||
bundleIndex?: number; | ||
trailingContent?: FormattableContent[]; | ||
outerHTML?: string; | ||
textContent?: string; | ||
} | ||
interface FormattableContent { | ||
@@ -70,4 +75,30 @@ value: string; | ||
} | ||
interface DataMap { | ||
unusedStyles?: string[]; | ||
transpileMap?: TranspileMap; | ||
} | ||
} | ||
namespace internal { | ||
interface RotateData { | ||
values: number[]; | ||
color: Null<number>; | ||
} | ||
interface ResizeData extends Dimension { | ||
mode: string; | ||
algorithm: string; | ||
align: number; | ||
color: Null<number>; | ||
} | ||
interface CropData extends Point, Dimension {} | ||
interface FileOutput { | ||
pathname: string; | ||
filepath: string; | ||
} | ||
} | ||
interface INode extends IModule { | ||
@@ -106,10 +137,10 @@ enableDiskRead(): void; | ||
isJpeg(filename: string, mimeType?: string, filepath?: string): boolean; | ||
parseResizeMode(value: string): Undef<ResizeData>; | ||
parseCrop(value: string): Undef<CropData>; | ||
parseResizeMode(value: string): Undef<internal.ResizeData>; | ||
parseCrop(value: string): Undef<internal.CropData>; | ||
parseOpacity(value: string): Undef<number>; | ||
parseRotation(value: string): Undef<RotateData>; | ||
resize(instance: jimp, options: ResizeData): jimp; | ||
crop(instance: jimp, options: CropData): jimp; | ||
parseRotation(value: string): Undef<internal.RotateData>; | ||
resize(instance: jimp, options: internal.ResizeData): jimp; | ||
crop(instance: jimp, options: internal.CropData): jimp; | ||
opacity(instance: jimp, value: number): jimp; | ||
rotate(instance: jimp, options: RotateData, filepath: string, preRotate?: () => void, postWrite?: (result?: unknown) => void): jimp; | ||
rotate(instance: jimp, options: internal.RotateData, filepath: string, preRotate?: () => void, postWrite?: (result?: unknown) => void): jimp; | ||
} | ||
@@ -154,3 +185,3 @@ | ||
getHtmlPages(modified?: boolean): ExpressAsset[]; | ||
getFileOutput(file: ExpressAsset): { pathname: string; filepath: string }; | ||
getFileOutput(file: ExpressAsset): internal.FileOutput; | ||
getRelativeUrl(file: ExpressAsset, url: string): Undef<string>; | ||
@@ -254,3 +285,3 @@ getAbsoluteUrl(value: string, href: string): string; | ||
interface ExpressAsset extends squared.base.FileAsset, chrome.ChromeAsset { | ||
dataMap?: DataMap; | ||
dataMap?: chrome.DataMap; | ||
exclusions?: squared.base.Exclusions; | ||
@@ -262,21 +293,2 @@ filepath?: string; | ||
} | ||
interface DataMap { | ||
unusedStyles?: string[]; | ||
transpileMap?: TranspileMap; | ||
} | ||
interface RotateData { | ||
values: number[]; | ||
color: Null<number>; | ||
} | ||
interface ResizeData extends Dimension { | ||
mode: string; | ||
algorithm: string; | ||
align: number; | ||
color: Null<number>; | ||
} | ||
interface CropData extends Point, Dimension {} | ||
} | ||
@@ -283,0 +295,0 @@ |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Type definitions for squared-functions", | ||
@@ -21,4 +21,3 @@ "types": "lib/index.d.ts", | ||
"url": "https://github.com/anpham6/squared-functions/issues" | ||
}, | ||
"gitHead": "7f4c627fdd99830e83aef1eb2354053e2f0a9ce5" | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
12846
269