@squared-functions/types
Advanced tools
Comparing version 0.7.5 to 0.8.0
@@ -47,3 +47,3 @@ /// <reference path="type.d.ts" /> | ||
service: string; | ||
credential: StringMap; | ||
credential: string | StringMap; | ||
bucket?: string; | ||
@@ -236,6 +236,6 @@ admin?: CloudServiceAdmin; | ||
interface ServiceClient { | ||
validate(credential: StringMap): boolean; | ||
validate(credential: PlainObject): boolean; | ||
deleteObjects(this: ICloud | IFileManager, credential: unknown, service: string, bucket: string, sdk?: string): Promise<void>; | ||
createClient?<T>(this: ICloud | IFileManager, credential: unknown, service: string): T; | ||
setCredential?(this: ICloud | IFileManager, credential: PlainObject): void; | ||
setCredential?(this: ICloud | IFileManager, credential: unknown): void; | ||
setPublicRead?(this: ICloud | IFileManager, ...args: unknown[]): void; | ||
@@ -344,3 +344,3 @@ } | ||
setObjectKeys(assets: ExternalAsset[]): void; | ||
deleteObjects(credential: PlainObject, service: string, bucket: string, bucketGroup?: string): Promise<void>; | ||
deleteObjects(credential: unknown, service: string, bucket: string, bucketGroup?: string): Promise<void>; | ||
getService(functionName: CloudFunctions, data: Undef<squared.CloudService[]>): Undef<squared.CloudService>; | ||
@@ -364,2 +364,8 @@ hasService(functionName: CloudFunctions, data: squared.CloudService): squared.CloudServiceAction | false; | ||
interface IWatch extends IModule { | ||
interval: number; | ||
whenModified?: (assets: ExternalAsset[]) => void; | ||
start(assets: ExternalAsset[]): void; | ||
} | ||
interface ChromeConstructor { | ||
@@ -407,3 +413,2 @@ new(): IChrome; | ||
absolutePath(value: string, href: string): string; | ||
relativePath(file: ExternalAsset, filename?: string): string; | ||
assignFilename(file: ExternalAsset): string; | ||
@@ -520,5 +525,6 @@ getUTF8String(file: ExternalAsset, fileUri?: string): string; | ||
fileUri?: string; | ||
cloudUri?: string; | ||
buffer?: Buffer; | ||
sourceUTF8?: string; | ||
cloudUri?: string; | ||
relativePath?: string; | ||
originalName?: string; | ||
@@ -525,0 +531,0 @@ transforms?: string[]; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.7.5", | ||
"version": "0.8.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
22387
488