Skip to content

Commit

Permalink
fix: page extend type
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 9, 2023
1 parent 7c6706c commit 3b68174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/epubook/src/epubook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export class Epubook<P extends Record<string, PageTemplate> = DefaultThemePageTe
return this;
}

public extend<T extends Record<string, PageTemplate>>(
theme: Partial<Theme<T>>
): Epubook<Prettify<P & T>> {
public extend<T extends Record<string, PageTemplate>>(theme: {
pages?: T;
}): Epubook<Prettify<P & T>> {
// TODO: Extend styles
// Extend page templates
this.theme.pages = {
Expand Down

0 comments on commit 3b68174

Please sign in to comment.