@squared-functions/types
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -7,12 +7,5 @@ /// <reference path="type.d.ts" /> | ||
rootDir?: string; | ||
moveTo?: string; | ||
format?: string; | ||
preserve?: boolean; | ||
exclude?: boolean; | ||
baseUrl?: string; | ||
bundleId?: number; | ||
bundleIndex?: number; | ||
bundleRoot?: string; | ||
outerHTML?: string; | ||
trailingContent?: FormattableContent[]; | ||
inlineContent?: string; | ||
@@ -22,7 +15,2 @@ attributes?: ObjectMap<Undef<Null<string>>>; | ||
export interface FormattableContent { | ||
value: string; | ||
preserve?: boolean; | ||
} | ||
export interface TemplateeMap { | ||
@@ -29,0 +17,0 @@ html: ObjectMap<PlainObject>; |
@@ -16,3 +16,4 @@ /// <reference path="type.d.ts" /> | ||
type ModuleWriteFailMethod = (value: string | [string, string], message?: unknown) => void; | ||
type FileManagerFinalizeImageMethod = (result: internal.Image.OutputData, error?: Null<Error>) => void; | ||
type FileManagerQueueImageMethod = (data: internal.FileData, ouputType: string, saveAs: string, command?: string) => Undef<string>; | ||
type FileManagerFinalizeImageMethod<T = void> = (data: internal.Image.OutputData, error?: Null<Error>) => T; | ||
type FileManagerPerformAsyncTaskCallback = VoidFunction; | ||
@@ -28,2 +29,3 @@ type FileManagerCompleteAsyncTaskCallback = (value?: unknown, parent?: ExternalAsset) => void; | ||
command: string; | ||
baseDirectory?: string; | ||
} | ||
@@ -282,2 +284,4 @@ | ||
transform(type: string, format: string, value: string, input?: internal.Document.SourceMapInput): Promise<Void<[string, Undef<Map<string, internal.Document.SourceMapOutput>>]>>; | ||
queueImage?: FileManagerQueueImageMethod; | ||
finalizeImage?: FileManagerFinalizeImageMethod<boolean>; | ||
} | ||
@@ -288,3 +292,3 @@ | ||
using(this: IFileManager, document: IDocument, file: ExternalAsset): Promise<void>; | ||
finalize(this: IFileManager, document: IDocument): void; | ||
finalize(this: IFileManager, document: IDocument, assets: ExternalAsset[]): void; | ||
formatContent(this: IFileManager, document: IDocument, file: ExternalAsset, content: string): string; | ||
@@ -324,5 +328,5 @@ new(body: RequestBody, settings?: ExtendedSettings.DocumentModule, ...args: unknown[]): IDocument; | ||
readonly assets: ExternalAsset[]; | ||
readonly documentAssets: ExternalAsset[]; | ||
readonly postFinalize: FunctionType<void>; | ||
readonly baseDirectory: string; | ||
readonly baseAsset?: ExternalAsset; | ||
install(name: string, ...args: unknown[]): void; | ||
@@ -338,6 +342,5 @@ add(value: string): void; | ||
setFileUri(file: ExternalAsset): internal.FileOutput; | ||
getRelativePath(file: ExternalAsset, filename?: string): string; | ||
assignFilename(data: internal.AssetData): Undef<string>; | ||
findAsset(uri: string, fromElement?: boolean): Undef<ExternalAsset>; | ||
findRelativePath(file: ExternalAsset, location: string, partial?: boolean): Undef<string>; | ||
getHtmlPages(): ExternalAsset[]; | ||
findAsset(uri: string): Undef<ExternalAsset>; | ||
removeCwd(value: Undef<string>): string; | ||
@@ -350,4 +353,4 @@ getUTF8String(file: ExternalAsset, fileUri?: string): string; | ||
writeSourceMap(outputData: [string, Undef<Map<string, internal.Document.SourceMapOutput>>], file: ExternalAsset, sourceContent?: string, modified?: boolean): void; | ||
queueImage(data: internal.FileData, ouputType: string, saveAs: string, command?: string): Undef<string>; | ||
compressFile(file: ExternalAsset): Promise<unknown>; | ||
queueImage: FileManagerQueueImageMethod; | ||
finalizeImage: FileManagerFinalizeImageMethod; | ||
@@ -458,2 +461,3 @@ finalizeAsset(data: internal.FileData, parent?: ExternalAsset): Promise<void>; | ||
assets: ExternalAsset[]; | ||
baseUrl?: string; | ||
unusedStyles?: chrome.UnusedStyles; | ||
@@ -464,18 +468,18 @@ templateMap?: StandardMap; | ||
interface ExternalAsset extends squared.FileAsset, chrome.ChromeAsset { | ||
interface ExternalAsset extends squared.FileAsset, squared.BundleAction { | ||
fileUri?: string; | ||
buffer?: Buffer; | ||
sourceUTF8?: string; | ||
cloudUri?: string; | ||
relativePath?: string; | ||
originalName?: string; | ||
transforms?: string[]; | ||
inlineBase64?: string; | ||
inlineCloud?: string; | ||
inlineCssCloud?: string; | ||
inlineCssMap?: StringMap; | ||
srcSet?: string[]; | ||
etag?: string; | ||
invalid?: boolean; | ||
} | ||
interface CloudAsset extends ExternalAsset { | ||
cloudUri?: string; | ||
inlineCloud?: string; | ||
inlineCssCloud?: string; | ||
} | ||
} | ||
@@ -482,0 +486,0 @@ |
/// <reference path="type.d.ts" /> | ||
export interface LocationUri { | ||
pathname: string; | ||
filename: string; | ||
interface ElementScope { | ||
watch?: boolean | WatchInterval; | ||
tasks?: string[]; | ||
} | ||
export interface FileAsset extends LocationUri { | ||
content?: string; | ||
interface Asset extends ElementScope { | ||
uri?: string; | ||
mimeType?: string; | ||
base64?: string; | ||
} | ||
interface TextAsset extends Asset, LocationUri { | ||
content?: string; | ||
} | ||
interface OutputAction { | ||
moveTo?: string; | ||
commands?: string[]; | ||
compress?: CompressFormat[]; | ||
document?: string[]; | ||
cloudStorage?: CloudStorage[]; | ||
watch?: boolean | WatchInterval; | ||
tasks?: string[]; | ||
} | ||
export interface LocationUri { | ||
pathname: string; | ||
filename: string; | ||
} | ||
export interface FileAsset extends TextAsset, OutputAction { | ||
base64?: string; | ||
} | ||
export interface BundleAction { | ||
bundleId?: number; | ||
bundleIndex?: number; | ||
bundleRoot?: string; | ||
trailingContent?: string[]; | ||
} | ||
export interface CompressFormat { | ||
@@ -21,0 +42,0 @@ format: string; |
{ | ||
"name": "@squared-functions/types", | ||
"version": "0.10.0", | ||
"version": "0.10.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
25477
546