mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Added type declarations
This commit is contained in:
parent
0da286b0a2
commit
6bfcd1e4eb
50 changed files with 1837 additions and 54 deletions
38
types/themes.d.ts
vendored
Normal file
38
types/themes.d.ts
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
import Rendition from "./rendition";
|
||||
import Contents from "./contents";
|
||||
|
||||
export default class Themes {
|
||||
constructor(rendition: Rendition);
|
||||
|
||||
register( themeObject: object ): void;
|
||||
|
||||
register( theme: string, url: string ): void;
|
||||
|
||||
register( theme: string, themeObject: object ): void;
|
||||
|
||||
default( theme: object | string ): void;
|
||||
|
||||
registerThemes( themes: object ): void;
|
||||
|
||||
registerUrl( name: string, input: string ): void;
|
||||
|
||||
registerRules( name: string, rules: object ): void;
|
||||
|
||||
select( name: string ): void;
|
||||
|
||||
update( name: string ): void;
|
||||
|
||||
inject( content: Contents ): void;
|
||||
|
||||
add( name: string, contents: Contents ): void;
|
||||
|
||||
override(name: string, value: string, priority: boolean): void;
|
||||
|
||||
overrides(contents: Contents): void;
|
||||
|
||||
fontSize(size: string): void;
|
||||
|
||||
font(f: string): void;
|
||||
|
||||
destroy(): void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue