@squared-functions/types
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -191,13 +191,14 @@ /// <reference path="type.d.ts" /> | ||
namespace Cloud { | ||
interface CloudUploadOptions<T>{ | ||
interface UploadOptions<T>{ | ||
upload: squared.CloudServiceUpload; | ||
credentials: T; | ||
filename: string; | ||
fileUri: string; | ||
fileGroup: [Buffer | string, string][]; | ||
filename?: string; | ||
mimeType?: string; | ||
} | ||
type CloudServiceClient = (config: squared.CloudService) => boolean; | ||
type CloudServiceHost = (this: IFileManager, credentials: PlainObject, serviceName: string) => CloudUploadCallback; | ||
type CloudUploadCallback = (buffer: Buffer, options: CloudUploadOptions<unknown>, success: (value?: unknown) => void) => void; | ||
type ServiceClient = (config: squared.CloudService) => boolean; | ||
type ServiceHost = (this: IFileManager, credentials: PlainObject, serviceName: string) => UploadCallback; | ||
type UploadCallback = (buffer: Buffer, options: UploadOptions<unknown>, success: (value?: unknown) => void) => void; | ||
} | ||
@@ -299,4 +300,4 @@ | ||
settings: settings.CloudModule; | ||
getService(data: Undef<squared.CloudService[]>, functionName: CloudFunctions): Undef<squared.CloudService>; | ||
hasService(data: squared.CloudService, functionName: CloudFunctions): squared.CloudServiceAction | false; | ||
getService(functionName: CloudFunctions, data: Undef<squared.CloudService[]>): Undef<squared.CloudService>; | ||
hasService(functionName: CloudFunctions, data: squared.CloudService): squared.CloudServiceAction | false; | ||
} | ||
@@ -303,0 +304,0 @@ |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"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
19832
440