@squared-functions/types
Advanced tools
Comparing version 0.9.4 to 0.9.5
/// <reference path="type.d.ts" /> | ||
import type * as squared from './squared'; | ||
import type * as chrome from './chrome'; | ||
import type { WriteStream } from 'fs'; | ||
@@ -20,126 +23,2 @@ import type { Response } from 'express'; | ||
namespace squared { | ||
interface LocationUri { | ||
pathname: string; | ||
filename: string; | ||
} | ||
interface FileAsset extends LocationUri { | ||
content?: string; | ||
uri?: string; | ||
mimeType?: string; | ||
base64?: string; | ||
commands?: string[]; | ||
compress?: CompressFormat[]; | ||
cloudStorage?: CloudStorage[]; | ||
watch?: boolean | WatchInterval; | ||
tasks?: string[]; | ||
} | ||
interface CompressFormat { | ||
format: string; | ||
level?: number; | ||
condition?: string; | ||
} | ||
interface CloudService extends ObjectMap<unknown> { | ||
service: string; | ||
credential: string | PlainObject; | ||
} | ||
interface CloudDatabase<T = string | PlainObject | any[]> extends CloudService { | ||
table: string; | ||
value: string | ObjectMap<string | string[]>; | ||
name?: string; | ||
id?: string; | ||
query?: T; | ||
limit?: number; | ||
params?: unknown[]; | ||
options?: PlainObject; | ||
element?: { | ||
outerHTML?: string; | ||
}; | ||
} | ||
interface CloudStorage extends CloudService { | ||
bucket?: string; | ||
admin?: CloudStorageAdmin; | ||
upload?: CloudStorageUpload; | ||
download?: CloudStorageDownload; | ||
} | ||
interface CloudStorageAdmin { | ||
publicRead?: boolean; | ||
emptyBucket?: boolean; | ||
preservePath?: boolean; | ||
} | ||
interface CloudStorageAction extends Partial<LocationUri> { | ||
active?: boolean; | ||
overwrite?: boolean; | ||
} | ||
interface CloudStorageUpload extends CloudStorageAction { | ||
localStorage?: boolean; | ||
endpoint?: string; | ||
all?: boolean; | ||
publicRead?: boolean; | ||
} | ||
interface CloudStorageDownload extends CloudStorageAction { | ||
versionId?: string; | ||
deleteObject?: string; | ||
} | ||
interface WatchInterval { | ||
interval?: number; | ||
expires?: string; | ||
} | ||
interface ResponseData { | ||
success: boolean; | ||
data?: unknown; | ||
zipname?: string; | ||
bytes?: number; | ||
files?: string[]; | ||
error?: ResponseError; | ||
} | ||
interface ResponseError { | ||
message: string; | ||
hint?: string; | ||
} | ||
} | ||
namespace chrome { | ||
type UnusedStyles = string[]; | ||
interface ChromeAsset { | ||
rootDir?: string; | ||
moveTo?: string; | ||
format?: string; | ||
preserve?: boolean; | ||
exclude?: boolean; | ||
baseUrl?: string; | ||
bundleId?: number; | ||
bundleIndex?: number; | ||
bundleRoot?: string; | ||
outerHTML?: string; | ||
trailingContent?: FormattableContent[]; | ||
inlineContent?: string; | ||
attributes?: ObjectMap<Undef<Null<string>>>; | ||
} | ||
interface FormattableContent { | ||
value: string; | ||
preserve?: boolean; | ||
} | ||
interface TranspileMap { | ||
html: ObjectMap<StringMap>; | ||
js: ObjectMap<StringMap>; | ||
css: ObjectMap<StringMap>; | ||
} | ||
} | ||
namespace internal { | ||
@@ -512,3 +391,3 @@ namespace Image { | ||
interface Settings { | ||
version?: string; | ||
apiVersion?: string; | ||
disk_read?: BoolString; | ||
@@ -515,0 +394,0 @@ disk_write?: BoolString; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Type definitions for squared-functions", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
7
25244
545