@squared-functions/types
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -92,2 +92,4 @@ /// <reference path="type.d.ts" /> | ||
namespace chrome { | ||
type UnusedStyles = string[]; | ||
interface ChromeAsset { | ||
@@ -139,6 +141,8 @@ rootDir?: string; | ||
namespace Image { | ||
type CompressFormat = squared.CompressFormat; | ||
interface UsingOptions { | ||
data: FileData; | ||
command?: string; | ||
compress?: squared.CompressFormat; | ||
compress?: CompressFormat; | ||
callback?: FileManagerWriteImageCallback; | ||
@@ -201,6 +205,10 @@ } | ||
namespace Cloud { | ||
type CloudService = squared.CloudService; | ||
type CloudServiceUpload = squared.CloudServiceUpload; | ||
type CloudServiceDownload = squared.CloudServiceDownload; | ||
interface UploadData<T> { | ||
buffer: Buffer; | ||
storage: squared.CloudService; | ||
upload: squared.CloudServiceUpload; | ||
service: CloudService; | ||
upload: CloudServiceUpload; | ||
credential: T; | ||
@@ -214,5 +222,9 @@ fileUri: string; | ||
type ServiceClient = (config: squared.CloudService) => boolean; | ||
interface ServiceClient { | ||
validate: (config: CloudService) => boolean; | ||
setCredential?: (credential: PlainObject) => void; | ||
} | ||
type UploadHost = (this: IFileManager, service: string, credential: PlainObject) => UploadCallback; | ||
type DownloadHost = (this: IFileManager, service: string, credential: PlainObject, download: squared.CloudServiceDownload, success: (value: Null<Buffer | string>) => void) => void; | ||
type DownloadHost = (this: IFileManager, service: string, credential: PlainObject, download: CloudServiceDownload, success: (value: Null<Buffer | string>) => void) => void; | ||
type UploadCallback = (data: UploadData<unknown>, success: (value: string) => void) => void; | ||
@@ -262,8 +274,5 @@ } | ||
interface ChromeModule { | ||
interface ChromeModule extends Partial<chrome.TranspileMap> { | ||
eval_function?: boolean; | ||
eval_text_template?: boolean; | ||
html?: ObjectMap<StandardMap>; | ||
css?: ObjectMap<StandardMap>; | ||
js?: ObjectMap<StandardMap>; | ||
} | ||
@@ -478,3 +487,3 @@ } | ||
assets: ExternalAsset[]; | ||
unusedStyles?: string[]; | ||
unusedStyles?: chrome.UnusedStyles; | ||
transpileMap?: chrome.TranspileMap; | ||
@@ -493,3 +502,3 @@ } | ||
inlineCssCloud?: string; | ||
inlineMap?: StringMap; | ||
inlineCssMap?: StringMap; | ||
etag?: string; | ||
@@ -496,0 +505,0 @@ invalid?: boolean; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"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
20846
459