Skip to content

Commit

Permalink
Use types instead of interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Oct 21, 2024
1 parent b4470c3 commit d6af09d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import type {PDFOptions, PuppeteerLaunchOptions} from "puppeteer";
/**
* Defines the renderer options.
*/
export interface RendererOptions extends EtaConfig {
export type RendererOptions = Partial<EtaConfig & {

/**
* The launch options for the browser used to render PDF documents.
*/
browser: PuppeteerLaunchOptions;
}
}>;

/**
* Defines the rendering options.
*/
export interface RenderingOptions {
export type RenderingOptions = Partial<{

/**
* Value indicating whether the template is asynchronous.
Expand All @@ -28,7 +28,7 @@ export interface RenderingOptions {
* Value indicating whether to write the rendering result to the response.
*/
writeResponse: boolean;
}
}>;

/**
* Attaches a view renderer to the context of the specified application.
Expand Down

0 comments on commit d6af09d

Please sign in to comment.