mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Lint
This commit is contained in:
parent
f09089cf77
commit
7c7c554ee7
84 changed files with 13879 additions and 14510 deletions
32
types/resources.d.ts
vendored
32
types/resources.d.ts
vendored
|
@ -1,33 +1,29 @@
|
|||
import { PackagingManifestObject } from "./packaging";
|
||||
import Archive from "./archive";
|
||||
import { PackagingManifestObject } from "./packaging";
|
||||
|
||||
export default class Resources {
|
||||
constructor(manifest: PackagingManifestObject, options: {
|
||||
replacements?: string,
|
||||
archive?: Archive,
|
||||
resolver?: Function,
|
||||
request?: Function
|
||||
});
|
||||
|
||||
constructor(
|
||||
manifest: PackagingManifestObject,
|
||||
options: {
|
||||
replacements?: string;
|
||||
archive?: Archive;
|
||||
resolver?: Function;
|
||||
request?: Function;
|
||||
}
|
||||
);
|
||||
process(manifest: PackagingManifestObject): void;
|
||||
|
||||
createUrl(url: string): Promise<string>;
|
||||
|
||||
replacements(): Promise<Array<string>>;
|
||||
|
||||
relativeTo(absolute: boolean, resolver?: Function): Array<string>;
|
||||
|
||||
get(path: string): string;
|
||||
|
||||
substitute(content: string, url?: string): string;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
private split(): void;
|
||||
|
||||
private splitUrls(): void;
|
||||
|
||||
private replaceCss(archive: Archive, resolver?: Function): Promise<Array<string>>;
|
||||
|
||||
private replaceCss(
|
||||
archive: Archive,
|
||||
resolver?: Function
|
||||
): Promise<Array<string>>;
|
||||
private createCssFile(href: string): Promise<string>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue