@squared-functions/types
Advanced tools
Comparing version 0.5.4 to 0.5.5
/// <reference path="type.d.ts" /> | ||
import type * as awsCore from 'aws-sdk/lib/core'; | ||
import type { Response } from 'express'; | ||
@@ -8,2 +7,5 @@ import type { CorsOptions } from 'cors'; | ||
import type { ConfigurationOptions } from 'aws-sdk/lib/core'; | ||
import type { GoogleAuthOptions } from 'google-auth-library'; | ||
declare namespace functions { | ||
@@ -39,3 +41,3 @@ type BoolString = boolean | string; | ||
interface ResultOfFileAction { | ||
interface FilePostResult { | ||
success: boolean; | ||
@@ -45,4 +47,6 @@ zipname?: string; | ||
files?: string[]; | ||
application?: string; | ||
system?: string; | ||
error?: { | ||
message: string; | ||
hint?: string; | ||
}; | ||
} | ||
@@ -167,3 +171,9 @@ } | ||
interface StorageSharedKeyCredential { | ||
accountName: string; | ||
accountKey: string; | ||
} | ||
type CloudServiceClient = (data: chrome.CloudService, settings: StandardMap) => boolean; | ||
type CloudServiceHost = (this: IFileManager, config: chrome.CloudService) => CloudServiceUpload; | ||
type CloudServiceUpload = (buffer: Buffer, success: (value?: unknown) => void, options: CloudUploadOptions) => void; | ||
@@ -181,4 +191,10 @@ } | ||
s3?: { | ||
[key: string]: awsCore.ConfigurationOptions; | ||
[key: string]: ConfigurationOptions; | ||
}; | ||
azure?: { | ||
[key: string]: external.StorageSharedKeyCredential; | ||
}; | ||
gcs?: { | ||
[key: string]: GoogleAuthOptions; | ||
}; | ||
} | ||
@@ -245,5 +261,3 @@ | ||
createConfig(value: string): Undef<StandardMap | string>; | ||
minifyHtml(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>; | ||
minifyCss(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>; | ||
minifyJs(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>; | ||
transform(type: ExternalCategory, format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>; | ||
formatContent(mimeType: string, format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>; | ||
@@ -315,2 +329,4 @@ removeCss(source: string, styles: string[]): Undef<string>; | ||
moduleImage(): IImage; | ||
moduleChrome(): IChrome; | ||
moduleCloud(): ICloud; | ||
new(dirname: string, body: RequestBody, postFinalize: FunctionType<void>, productionRelease?: boolean): IFileManager; | ||
@@ -330,3 +346,3 @@ } | ||
writeMessage(value: string, message: unknown, title?: string, color?: "green" | "yellow" | "blue" | "white" | "grey"): void; | ||
writeFail(description: string, message: unknown): void; | ||
writeFail(value: string, message: unknown): void; | ||
} | ||
@@ -333,0 +349,0 @@ |
@@ -12,2 +12,3 @@ type Undef<T> = T | undefined; | ||
type StandardMap = Record<string, any>; | ||
type PlainObject = Record<string | number | symbol, unknown>; | ||
type ObjectMap<T> = Record<string, T>; | ||
@@ -14,0 +15,0 @@ |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"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
17553
387