@squared-functions/types
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -31,6 +31,5 @@ /// <reference path="file.d.ts" /> | ||
interface ICompress extends IModule { | ||
gzip_level: number; | ||
brotli_quality: number; | ||
jpeg_quality: number; | ||
tinify_api_key: string; | ||
gzipLevel: number; | ||
brotliQuality: number; | ||
tinifyApiKey: string; | ||
createWriteStreamAsGzip(source: string, filepath: string, level?: number): WriteStream; | ||
@@ -46,2 +45,3 @@ createWriteStreamAsBrotli(source: string, filepath: string, quality?: number, mimeType?: string): WriteStream; | ||
interface IImage extends IModule { | ||
jpegQuality: number; | ||
isJpeg(filename: string, mimeType?: string, filepath?: string): boolean; | ||
@@ -73,2 +73,4 @@ parseResizeMode(value: string): Undef<ResizeMode>; | ||
cleared: boolean; | ||
emptyDirectory: boolean; | ||
productionRelease: boolean; | ||
readonly files: Set<string>; | ||
@@ -81,3 +83,3 @@ readonly filesQueued: Set<string>; | ||
readonly assets: ExpressAsset[]; | ||
readonly completeAsyncTask: (filepath?: string) => void; | ||
readonly postFinalize: (this: functions.IFileManager) => void; | ||
readonly requestMain?: ExpressAsset; | ||
@@ -87,3 +89,5 @@ add(value: string): void; | ||
performAsyncTask(): void; | ||
removeAsyncTask(): boolean; | ||
removeAsyncTask(): void; | ||
completeAsyncTask(filepath?: string): void; | ||
performFinalize(): void; | ||
replace(file: ExpressAsset, replaceWith: string): void; | ||
@@ -103,3 +107,3 @@ validate(file: ExpressAsset, exclusions: Exclusions): boolean; | ||
writeBuffer(assets: ExpressAsset[], file: ExpressAsset, filepath: string, cached?: boolean): void; | ||
processAssets(empty: boolean): void; | ||
processAssets(): void; | ||
finalizeAssets(release: boolean): Promise<void[]>; | ||
@@ -115,5 +119,7 @@ } | ||
moduleChrome(): IChrome; | ||
new(dirname: string, assets: ExpressAsset[], completeAsyncTask: (filepath?: string) => void): IFileManager; | ||
new(dirname: string, assets: ExpressAsset[], postFinalize: (this: functions.IFileManager) => void, productionRelease?: boolean): IFileManager; | ||
} | ||
declare const FileManager: FileManagerConstructor; | ||
interface IModule { | ||
@@ -120,0 +126,0 @@ readonly major: number; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Type definitions for squared-functions", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
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
10475
232