From d6af09d9c2d91eb6eba5df6d1515ae0d254a7443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Mon, 21 Oct 2024 14:37:41 +0200 Subject: [PATCH] Use `type`s instead of `interface`s --- lib/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index a419345..e99e7f4 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -6,18 +6,18 @@ import type {PDFOptions, PuppeteerLaunchOptions} from "puppeteer"; /** * Defines the renderer options. */ -export interface RendererOptions extends EtaConfig { +export type RendererOptions = Partial; /** * Defines the rendering options. */ -export interface RenderingOptions { +export type RenderingOptions = Partial<{ /** * Value indicating whether the template is asynchronous. @@ -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.